summaryrefslogtreecommitdiff
path: root/fs/crypto
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2017-10-09 22:15:39 +0300
committerTheodore Ts'o <tytso@mit.edu>2017-10-19 02:52:37 +0300
commitd293c3e4e07334d761c88df9d68b3aa800a83dd9 (patch)
tree55b1b5b5befe49d2bc031fd6fb6fbc6aa5fcd0fc /fs/crypto
parentffcc41829ae043d0830bcd4536812fec7e098d93 (diff)
downloadlinux-d293c3e4e07334d761c88df9d68b3aa800a83dd9.tar.xz
fscrypt: new helper function - fscrypt_require_key()
Add a helper function which checks if an inode is encrypted, and if so, tries to set up its encryption key. This is a pattern which is duplicated in multiple places in each of ext4, f2fs, and ubifs --- for example, when a regular file is asked to be opened or truncated. Acked-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/crypto')
0 files changed, 0 insertions, 0 deletions