diff options
| author | Eric Biggers <ebiggers@google.com> | 2017-10-09 12:15:43 -0700 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-01-04 18:20:25 -0800 |
| commit | 5cbdd42ad248df655c3a07c0be92078e6e4ebe84 (patch) | |
| tree | 7d1e94649ea4f152c4f6d37602197d1282976643 /crypto/api.c | |
| parent | a31feba5c18ff73cedb4301c5a0f2ffa7624218b (diff) | |
fscrypt: new helper function - fscrypt_prepare_lookup()
Introduce a helper function which prepares to look up the given dentry
in the given directory. If the directory is encrypted, it handles
loading the directory's encryption key, setting the dentry's ->d_op to
fscrypt_d_ops, and setting DCACHE_ENCRYPTED_WITH_KEY if the directory's
encryption key is available.
Note: once all filesystems switch over to this, we'll be able to move
fscrypt_d_ops and fscrypt_set_encrypted_dentry() to fscrypt_private.h.
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 'crypto/api.c')
0 files changed, 0 insertions, 0 deletions
