commit | 33b4cc2501d323feef3cc3ec9a084d80bef5b5e8 | [log] [tgz] |
---|---|---|
author | Eric Biggers <ebiggers@google.com> | Thu Dec 26 10:10:22 2019 -0600 |
committer | Theodore Ts'o <tytso@mit.edu> | Fri Jan 17 16:24:53 2020 -0500 |
tree | ae2b857d07fcdf275a124bb9d6eeb546a8d3ff0c | |
parent | 457b1e353c739af39159269723949f315320446c [diff] |
ext4: only use fscrypt_zeroout_range() on regular files fscrypt_zeroout_range() is only for encrypted regular files, not for encrypted directories or symlinks. Fortunately, currently it seems it's never called on non-regular files. But to be safe ext4 should explicitly check S_ISREG() before calling it. Signed-off-by: Eric Biggers <ebiggers@google.com> Link: https://lore.kernel.org/r/20191226161022.53490-1-ebiggers@kernel.org Signed-off-by: Theodore Ts'o <tytso@mit.edu>