diff options
author | Gabriel Krisman Bertazi <krisman@suse.de> | 2024-02-21 20:14:10 +0300 |
---|---|---|
committer | Gabriel Krisman Bertazi <krisman@suse.de> | 2024-02-28 00:55:35 +0300 |
commit | be2760a703e6554c2b5784e2fec804284cdcbe4d (patch) | |
tree | 94259c9fc47a99ca37af14836b61d0f820b749ce /fs/f2fs/namei.c | |
parent | 04aa5f4eba49d6493801d0f1d515ed237459b166 (diff) | |
download | linux-be2760a703e6554c2b5784e2fec804284cdcbe4d.tar.xz |
f2fs: Configure dentry operations at dentry-creation time
This was already the case for case-insensitive before commit
bb9cd9106b22 ("fscrypt: Have filesystems handle their d_ops"), but it
was changed to set at lookup-time to facilitate the integration with
fscrypt. But it's a problem because dentries that don't get created
through ->lookup() won't have any visibility of the operations.
Since fscrypt now also supports configuring dentry operations at
creation-time, do it for any encrypted and/or casefold volume,
simplifying the implementation across these features.
Reviewed-by: Eric Biggers <ebiggers@google.com>
Link: https://lore.kernel.org/r/20240221171412.10710-9-krisman@suse.de
Signed-off-by: Gabriel Krisman Bertazi <krisman@suse.de>
Diffstat (limited to 'fs/f2fs/namei.c')
-rw-r--r-- | fs/f2fs/namei.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index b3bb815fc6aa..f7f63a567d86 100644 --- a/fs/f2fs/namei.c +++ b/fs/f2fs/namei.c @@ -531,7 +531,6 @@ static struct dentry *f2fs_lookup(struct inode *dir, struct dentry *dentry, } err = f2fs_prepare_lookup(dir, dentry, &fname); - generic_set_encrypted_ci_d_ops(dentry); if (err == -ENOENT) goto out_splice; if (err) |