diff mbox series

[20/21] configfs: use DCACHE_DONTCACHE

Message ID 20250224212051.1756517-20-viro@zeniv.linux.org.uk (mailing list archive)
State New
Headers show
Series [01/21] procfs: kill ->proc_dops | expand

Commit Message

Al Viro Feb. 24, 2025, 9:20 p.m. UTC
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
 fs/configfs/dir.c   | 1 -
 fs/configfs/mount.c | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

Comments

Christian Brauner Feb. 26, 2025, 8:40 a.m. UTC | #1
On Mon, Feb 24, 2025 at 09:20:50PM +0000, Al Viro wrote:
> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
> ---

Reviewed-by: Christian Brauner <brauner@kernel.org>

>  fs/configfs/dir.c   | 1 -
>  fs/configfs/mount.c | 1 +
>  2 files changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/configfs/dir.c b/fs/configfs/dir.c
> index 7d10278db30d..637267a76ad8 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
> diff --git a/fs/configfs/mount.c b/fs/configfs/mount.c
> index 20412eaca972..740f18b60c9d 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;
>  }
>  
> -- 
> 2.39.5
>
diff mbox series

Patch

diff --git a/fs/configfs/dir.c b/fs/configfs/dir.c
index 7d10278db30d..637267a76ad8 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
diff --git a/fs/configfs/mount.c b/fs/configfs/mount.c
index 20412eaca972..740f18b60c9d 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;
 }