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/hostfs | |
| parent | 3542920b91831974e3b9b3ce4bc083657a4f43d6 (diff) | |
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/hostfs')
| -rw-r--r-- | fs/hostfs/hostfs_kern.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c index 1c0f5038e19c..1f512f8ea757 100644 --- a/fs/hostfs/hostfs_kern.c +++ b/fs/hostfs/hostfs_kern.c @@ -933,7 +933,7 @@ static int hostfs_fill_super(struct super_block *sb, struct fs_context *fc) sb->s_blocksize_bits = 10; sb->s_magic = HOSTFS_SUPER_MAGIC; sb->s_op = &hostfs_sbops; - set_default_d_op(sb, &simple_dentry_operations); + sb->s_d_flags = DCACHE_DONTCACHE; sb->s_maxbytes = MAX_LFS_FILESIZE; err = super_setup_bdi(sb); if (err) |