diff mbox series

[21/21] afs dynroot: use DCACHE_DONTCACHE

Message ID 20250224212051.1756517-21-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/afs/dynroot.c | 1 -
 fs/afs/super.c   | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

Comments

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

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

>  fs/afs/dynroot.c | 1 -
>  fs/afs/super.c   | 1 +
>  2 files changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/afs/dynroot.c b/fs/afs/dynroot.c
> index d8bf52f77d93..2fad2987a6dc 100644
> --- a/fs/afs/dynroot.c
> +++ b/fs/afs/dynroot.c
> @@ -211,7 +211,6 @@ const struct inode_operations afs_dynroot_inode_operations = {
>  };
>  
>  const struct dentry_operations afs_dynroot_dentry_operations = {
> -	.d_delete	= always_delete_dentry,
>  	.d_release	= afs_d_release,
>  	.d_automount	= afs_d_automount,
>  };
> diff --git a/fs/afs/super.c b/fs/afs/super.c
> index 13d0414a1ddb..b48f524c1cb6 100644
> --- a/fs/afs/super.c
> +++ b/fs/afs/super.c
> @@ -488,6 +488,7 @@ static int afs_fill_super(struct super_block *sb, struct afs_fs_context *ctx)
>  
>  	if (as->dyn_root) {
>  		set_default_d_op(sb, &afs_dynroot_dentry_operations);
> +		sb->s_d_flags |= DCACHE_DONTCACHE;
>  		ret = afs_dynroot_populate(sb);
>  		if (ret < 0)
>  			goto error;
> -- 
> 2.39.5
>
diff mbox series

Patch

diff --git a/fs/afs/dynroot.c b/fs/afs/dynroot.c
index d8bf52f77d93..2fad2987a6dc 100644
--- a/fs/afs/dynroot.c
+++ b/fs/afs/dynroot.c
@@ -211,7 +211,6 @@  const struct inode_operations afs_dynroot_inode_operations = {
 };
 
 const struct dentry_operations afs_dynroot_dentry_operations = {
-	.d_delete	= always_delete_dentry,
 	.d_release	= afs_d_release,
 	.d_automount	= afs_d_automount,
 };
diff --git a/fs/afs/super.c b/fs/afs/super.c
index 13d0414a1ddb..b48f524c1cb6 100644
--- a/fs/afs/super.c
+++ b/fs/afs/super.c
@@ -488,6 +488,7 @@  static int afs_fill_super(struct super_block *sb, struct afs_fs_context *ctx)
 
 	if (as->dyn_root) {
 		set_default_d_op(sb, &afs_dynroot_dentry_operations);
+		sb->s_d_flags |= DCACHE_DONTCACHE;
 		ret = afs_dynroot_populate(sb);
 		if (ret < 0)
 			goto error;