diff options
author | Eric Biggers | 2019-05-20 18:29:52 +0200 |
---|---|---|
committer | Eric Biggers | 2019-05-28 19:27:53 +0200 |
commit | 6e4b73bcd1519d50680d92ba74887c80c4e59140 (patch) | |
tree | 36dcd075033712f765fedf4340713b8f23122803 /fs/crypto | |
parent | ext4: decrypt only the needed block in __ext4_block_zero_page_range() (diff) | |
download | kernel-qcow2-linux-6e4b73bcd1519d50680d92ba74887c80c4e59140.tar.gz kernel-qcow2-linux-6e4b73bcd1519d50680d92ba74887c80c4e59140.tar.xz kernel-qcow2-linux-6e4b73bcd1519d50680d92ba74887c80c4e59140.zip |
ext4: encrypt only up to last block in ext4_bio_write_page()
As an optimization, don't encrypt blocks fully beyond i_size, since
those definitely won't need to be written out. Also add a comment.
This is in preparation for allowing encryption on ext4 filesystems with
blocksize != PAGE_SIZE.
This is based on work by Chandan Rajendra.
Reviewed-by: Chandan Rajendra <chandan@linux.ibm.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Diffstat (limited to 'fs/crypto')
0 files changed, 0 insertions, 0 deletions