diff mbox series

[13/21] devpts, sunrpc: don't bother with ->d_delete or ->d_op, for that matter

Message ID 20250224212051.1756517-13-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
Just put DCACHE_DONTCACHE into ->s_d_flags.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
 fs/devpts/inode.c     | 2 +-
 net/sunrpc/rpc_pipe.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

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

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

>  fs/devpts/inode.c     | 2 +-
>  net/sunrpc/rpc_pipe.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/fs/devpts/inode.c b/fs/devpts/inode.c
> index f092973236ef..39344af02d1f 100644
> --- a/fs/devpts/inode.c
> +++ b/fs/devpts/inode.c
> @@ -433,7 +433,7 @@ devpts_fill_super(struct super_block *s, void *data, int silent)
>  	s->s_blocksize_bits = 10;
>  	s->s_magic = DEVPTS_SUPER_MAGIC;
>  	s->s_op = &devpts_sops;
> -	set_default_d_op(s, &simple_dentry_operations);
> +	s->s_d_flags = DCACHE_DONTCACHE;
>  	s->s_time_gran = 1;
>  
>  	error = -ENOMEM;
> diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c
> index e093e4cf20fa..acb28a502580 100644
> --- a/net/sunrpc/rpc_pipe.c
> +++ b/net/sunrpc/rpc_pipe.c
> @@ -1363,7 +1363,7 @@ rpc_fill_super(struct super_block *sb, struct fs_context *fc)
>  	sb->s_blocksize_bits = PAGE_SHIFT;
>  	sb->s_magic = RPCAUTH_GSSMAGIC;
>  	sb->s_op = &s_ops;
> -	set_default_d_op(sb, &simple_dentry_operations);
> +	sb->s_d_flags = DCACHE_DONTCACHE;
>  	sb->s_time_gran = 1;
>  
>  	inode = rpc_get_inode(sb, S_IFDIR | 0555);
> -- 
> 2.39.5
>
diff mbox series

Patch

diff --git a/fs/devpts/inode.c b/fs/devpts/inode.c
index f092973236ef..39344af02d1f 100644
--- a/fs/devpts/inode.c
+++ b/fs/devpts/inode.c
@@ -433,7 +433,7 @@  devpts_fill_super(struct super_block *s, void *data, int silent)
 	s->s_blocksize_bits = 10;
 	s->s_magic = DEVPTS_SUPER_MAGIC;
 	s->s_op = &devpts_sops;
-	set_default_d_op(s, &simple_dentry_operations);
+	s->s_d_flags = DCACHE_DONTCACHE;
 	s->s_time_gran = 1;
 
 	error = -ENOMEM;
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c
index e093e4cf20fa..acb28a502580 100644
--- a/net/sunrpc/rpc_pipe.c
+++ b/net/sunrpc/rpc_pipe.c
@@ -1363,7 +1363,7 @@  rpc_fill_super(struct super_block *sb, struct fs_context *fc)
 	sb->s_blocksize_bits = PAGE_SHIFT;
 	sb->s_magic = RPCAUTH_GSSMAGIC;
 	sb->s_op = &s_ops;
-	set_default_d_op(sb, &simple_dentry_operations);
+	sb->s_d_flags = DCACHE_DONTCACHE;
 	sb->s_time_gran = 1;
 
 	inode = rpc_get_inode(sb, S_IFDIR | 0555);