diff options
author | Eric Biggers <ebiggers@google.com> | 2019-05-20 18:29:45 +0200 |
---|---|---|
committer | Eric Biggers <ebiggers@google.com> | 2019-05-28 19:27:53 +0200 |
commit | 930d453995bdf4a0000bd162dfd4b70c6d7329f8 (patch) | |
tree | fcfc6f8c9cb1cbde2fe3c965cdf393d54595f6f2 /fs/crypto/crypto.c | |
parent | fscrypt: support encrypting multiple filesystem blocks per page (diff) | |
download | linux-930d453995bdf4a0000bd162dfd4b70c6d7329f8.tar.xz linux-930d453995bdf4a0000bd162dfd4b70c6d7329f8.zip |
fscrypt: handle blocksize < PAGE_SIZE in fscrypt_zeroout_range()
Adjust fscrypt_zeroout_range() to encrypt a block at a time rather than
a page at a time, so that it works when blocksize < PAGE_SIZE.
This isn't optimized for performance, but then again this function
already wasn't optimized for performance. As a future optimization, we
could submit much larger bios here.
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/crypto.c')
0 files changed, 0 insertions, 0 deletions