commit | 6e4b73bcd1519d50680d92ba74887c80c4e59140 | [log] [tgz] |
---|---|---|
author | Eric Biggers <ebiggers@google.com> | Mon May 20 09:29:52 2019 -0700 |
committer | Eric Biggers <ebiggers@google.com> | Tue May 28 10:27:53 2019 -0700 |
tree | 36dcd075033712f765fedf4340713b8f23122803 | |
parent | ec39a36867440995c9675b2800f5ddaeb51b024e [diff] |
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>