aboutsummaryrefslogtreecommitdiffstats
path: root/fs/crypto
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2019-12-09 12:50:21 -0800
committerEric Biggers <ebiggers@google.com>2019-12-31 10:33:50 -0600
commit56dce717950925f9d734b9e5621cbd41cbeb3e33 (patch)
tree7e75057b5c802c825b9b9759f334418f5c322041 /fs/crypto
parentfscrypt: move fscrypt_d_revalidate() to fname.c (diff)
downloadlinux-dev-56dce717950925f9d734b9e5621cbd41cbeb3e33.tar.xz
linux-dev-56dce717950925f9d734b9e5621cbd41cbeb3e33.zip
fscrypt: introduce fscrypt_needs_contents_encryption()
Add a function fscrypt_needs_contents_encryption() which takes an inode and returns true if it's an encrypted regular file and the kernel was built with fscrypt support. This will allow replacing duplicated checks of IS_ENCRYPTED() && S_ISREG() on the I/O paths in ext4 and f2fs, while also optimizing out unneeded code when !CONFIG_FS_ENCRYPTION. Link: https://lore.kernel.org/r/20191209205021.231767-1-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@google.com>
Diffstat (limited to 'fs/crypto')
0 files changed, 0 insertions, 0 deletions