diff options
author | Eric Biggers <ebiggers@google.com> | 2019-12-26 17:08:13 +0100 |
---|---|---|
committer | Eric Biggers <ebiggers@google.com> | 2020-01-14 21:50:33 +0100 |
commit | 796f12d742653028a1520cce3a76035c86e2ebf9 (patch) | |
tree | 5cd471266ee65359183864ef406dca159adde4c5 /fs/autofs | |
parent | fscrypt: remove redundant bi_status check (diff) | |
download | linux-796f12d742653028a1520cce3a76035c86e2ebf9.tar.xz linux-796f12d742653028a1520cce3a76035c86e2ebf9.zip |
fscrypt: optimize fscrypt_zeroout_range()
Currently fscrypt_zeroout_range() issues and waits on a bio for each
block it writes, which makes it very slow.
Optimize it to write up to 16 pages at a time instead.
Also add a function comment, and improve reliability by allowing the
allocations of the bio and the first ciphertext page to wait on the
corresponding mempools.
Link: https://lore.kernel.org/r/20191226160813.53182-1-ebiggers@kernel.org
Reviewed-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Diffstat (limited to 'fs/autofs')
0 files changed, 0 insertions, 0 deletions