diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2025-02-23 20:55:05 -0500 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2025-06-11 13:40:04 -0400 |
| commit | fe3c5120d6e32f73b5a4be2d14cb4839ce4116e0 (patch) | |
| tree | 707f80e4f438520108982c6fc8709aaeb6be070a /fs/devpts | |
| parent | shmem: no dentry retention past the refcount reaching zero (diff) | |
| download | linux-fe3c5120d6e32f73b5a4be2d14cb4839ce4116e0.tar.gz linux-fe3c5120d6e32f73b5a4be2d14cb4839ce4116e0.zip | |
devpts, sunrpc, hostfs: don't bother with ->d_op
Default ->d_op being simple_dentry_operations is equivalent to leaving
it NULL and putting DCACHE_DONTCACHE into ->s_d_flags.
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/devpts')
| -rw-r--r-- | fs/devpts/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/devpts/inode.c b/fs/devpts/inode.c index fd17992ee298..fdf22264a8e9 100644 --- a/fs/devpts/inode.c +++ b/fs/devpts/inode.c @@ -381,7 +381,7 @@ static int devpts_fill_super(struct super_block *s, struct fs_context *fc) 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; fsi->sb = s; |
