projects/linux·commit a509e7cf

configfs: use DCACHE_DONTCACHE

a509e7cf · Al Viro <[email protected]> · 2025-02-23 22:21:55 -05:00

Reviewed-by: Christian Brauner <[email protected]>
Signed-off-by: Al Viro <[email protected]>
Commit
a509e7cf622bc7ce3f45b1c7047fc2a5e9bea869
Parents
82a3c881

Changes

2 files changed · +1 −1

FileStatusAddDelContent
fs/configfs/dir.cmodified+0−1View file
fs/configfs/mount.cmodified+1−0View file

fs/configfs/dir.c

View file
diff --git a/fs/configfs/dir.c b/fs/configfs/dir.c
index ebf3282..f327fbb 100644
--- a/fs/configfs/dir.c
+++ b/fs/configfs/dir.c
@@ -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

fs/configfs/mount.c

View file
diff --git a/fs/configfs/mount.c b/fs/configfs/mount.c
index 20412ea..740f18b 100644
--- a/fs/configfs/mount.c
+++ b/fs/configfs/mount.c
@@ -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;
}