diff options
author | Luís Henriques <lhenriques@suse.de> | 2023-03-16 19:14:11 +0100 |
---|---|---|
committer | Eric Biggers <ebiggers@google.com> | 2023-03-28 06:15:49 +0200 |
commit | 6f2656eab290f0dd437cd4b2ec956c3519172d3b (patch) | |
tree | d3bf73108737fddc91eab34e53995a7db33a5438 /fs/mnt_idmapping.c | |
parent | fs/buffer.c: use b_folio for fscrypt work (diff) | |
download | linux-6f2656eab290f0dd437cd4b2ec956c3519172d3b.tar.xz linux-6f2656eab290f0dd437cd4b2ec956c3519172d3b.zip |
fscrypt: new helper function - fscrypt_prepare_lookup_partial()
This patch introduces a new helper function which can be used both in
lookups and in atomic_open operations by filesystems that want to handle
filename encryption and no-key dentries themselves.
The reason for this function to be used in atomic open is that this
operation can act as a lookup if handed a dentry that is negative. And in
this case we may need to set DCACHE_NOKEY_NAME.
Signed-off-by: Luís Henriques <lhenriques@suse.de>
Tested-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
[ebiggers: improved the function comment, and moved the function to just
below __fscrypt_prepare_lookup()]
Link: https://lore.kernel.org/r/20230320220149.21863-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
Diffstat (limited to 'fs/mnt_idmapping.c')
0 files changed, 0 insertions, 0 deletions