]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
configfs: use DCACHE_DONTCACHE
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 24 Feb 2025 03:21:55 +0000 (22:21 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 11 Jun 2025 17:41:05 +0000 (13:41 -0400)
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/configfs/dir.c
fs/configfs/mount.c

index ebf32822e29bed882c4204c71b1b3b4e5df2f2bd..f327fbb9a0cae39d9569a7b946586551642c4be3 100644 (file)
@@ -67,7 +67,6 @@ static void configfs_d_iput(struct dentry * dentry,
 
 const struct dentry_operations configfs_dentry_ops = {
        .d_iput         = configfs_d_iput,
-       .d_delete       = always_delete_dentry,
 };
 
 #ifdef CONFIG_LOCKDEP
index 20412eaca972e093604b639372515c86b103d9c1..740f18b60c9d0d0c58584254c58d3f61e8699e07 100644 (file)
@@ -93,6 +93,7 @@ static int configfs_fill_super(struct super_block *sb, struct fs_context *fc)
        root->d_fsdata = &configfs_root;
        sb->s_root = root;
        set_default_d_op(sb, &configfs_dentry_ops); /* the rest get that */
+       sb->s_d_flags |= DCACHE_DONTCACHE;
        return 0;
 }