diff options
author | Eric Biggers | 2019-05-20 18:29:43 +0200 |
---|---|---|
committer | Eric Biggers | 2019-05-28 19:27:52 +0200 |
commit | 03569f2fb8e734f281379767de674e23c38b0b14 (patch) | |
tree | 13c222b83eaf83f30c2ae175c9f539033bec44a7 /fs/ext4 | |
parent | fscrypt: clean up some BUG_ON()s in block encryption/decryption (diff) | |
download | kernel-qcow2-linux-03569f2fb8e734f281379767de674e23c38b0b14.tar.gz kernel-qcow2-linux-03569f2fb8e734f281379767de674e23c38b0b14.tar.xz kernel-qcow2-linux-03569f2fb8e734f281379767de674e23c38b0b14.zip |
fscrypt: introduce fscrypt_encrypt_block_inplace()
fscrypt_encrypt_page() behaves very differently depending on whether the
filesystem set FS_CFLG_OWN_PAGES in its fscrypt_operations. This makes
the function difficult to understand and document. It also makes it so
that all callers have to provide inode and lblk_num, when fscrypt could
determine these itself for pagecache pages.
Therefore, move the FS_CFLG_OWN_PAGES behavior into a new function
fscrypt_encrypt_block_inplace().
This is in preparation for allowing encryption on ext4 filesystems with
blocksize != PAGE_SIZE.
Reviewed-by: Chandan Rajendra <chandan@linux.ibm.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Diffstat (limited to 'fs/ext4')
0 files changed, 0 insertions, 0 deletions