Skip to content

Commit a509e7c

Browse files
author
Al Viro
committed
configfs: use DCACHE_DONTCACHE
Reviewed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 82a3c88 commit a509e7c

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

fs/configfs/dir.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ static void configfs_d_iput(struct dentry * dentry,
6767

6868
const struct dentry_operations configfs_dentry_ops = {
6969
.d_iput = configfs_d_iput,
70-
.d_delete = always_delete_dentry,
7170
};
7271

7372
#ifdef CONFIG_LOCKDEP

fs/configfs/mount.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ static int configfs_fill_super(struct super_block *sb, struct fs_context *fc)
9393
root->d_fsdata = &configfs_root;
9494
sb->s_root = root;
9595
set_default_d_op(sb, &configfs_dentry_ops); /* the rest get that */
96+
sb->s_d_flags |= DCACHE_DONTCACHE;
9697
return 0;
9798
}
9899

0 commit comments

Comments
 (0)