diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-01-22 14:23:35 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-01-22 14:23:35 -0500 |
commit | 391f2a16b74b95da2f05a607f53213fc8ed24b8e (patch) | |
tree | 93bfd1906778d7ff24f6ce7c03f2e7c0f91caef5 /fs/ext4/crypto.c | |
parent | d5ffdf8b4ac6e6db5702ba31870c476d5fa30660 (diff) | |
parent | 68ce7bfcd995a8a393b1b14fa67dbc16fa3dc784 (diff) |
Merge tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4
Pull ext4 updates from Ted Ts'o:
"Some locking and page fault bug fixes from Jan Kara, some ext4
encryption fixes from me, and Li Xi's Project Quota commits"
* tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
fs: clean up the flags definition in uapi/linux/fs.h
ext4: add FS_IOC_FSSETXATTR/FS_IOC_FSGETXATTR interface support
ext4: add project quota support
ext4: adds project ID support
ext4 crypto: simplify interfaces to directory entry insert functions
ext4 crypto: add missing locking for keyring_key access
ext4: use pre-zeroed blocks for DAX page faults
ext4: implement allocation of pre-zeroed blocks
ext4: provide ext4_issue_zeroout()
ext4: get rid of EXT4_GET_BLOCKS_NO_LOCK flag
ext4: document lock ordering
ext4: fix races of writeback with punch hole and zero range
ext4: fix races between buffered IO and collapse / insert range
ext4: move unlocked dio protection from ext4_alloc_file_blocks()
ext4: fix races between page faults and hole punching
Diffstat (limited to 'fs/ext4/crypto.c')
-rw-r--r-- | fs/ext4/crypto.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/ext4/crypto.c b/fs/ext4/crypto.c index 1a0835073663..c8021208a7eb 100644 --- a/fs/ext4/crypto.c +++ b/fs/ext4/crypto.c | |||
@@ -384,14 +384,12 @@ int ext4_decrypt(struct page *page) | |||
384 | EXT4_DECRYPT, page->index, page, page); | 384 | EXT4_DECRYPT, page->index, page, page); |
385 | } | 385 | } |
386 | 386 | ||
387 | int ext4_encrypted_zeroout(struct inode *inode, struct ext4_extent *ex) | 387 | int ext4_encrypted_zeroout(struct inode *inode, ext4_lblk_t lblk, |
388 | ext4_fsblk_t pblk, ext4_lblk_t len) | ||
388 | { | 389 | { |
389 | struct ext4_crypto_ctx *ctx; | 390 | struct ext4_crypto_ctx *ctx; |
390 | struct page *ciphertext_page = NULL; | 391 | struct page *ciphertext_page = NULL; |
391 | struct bio *bio; | 392 | struct bio *bio; |
392 | ext4_lblk_t lblk = le32_to_cpu(ex->ee_block); | ||
393 | ext4_fsblk_t pblk = ext4_ext_pblock(ex); | ||
394 | unsigned int len = ext4_ext_get_actual_len(ex); | ||
395 | int ret, err = 0; | 393 | int ret, err = 0; |
396 | 394 | ||
397 | #if 0 | 395 | #if 0 |