Skip to content

Commit fe3c512

Browse files
author
Al Viro
committed
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>
1 parent 3542920 commit fe3c512

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

fs/devpts/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ static int devpts_fill_super(struct super_block *s, struct fs_context *fc)
381381
s->s_blocksize_bits = 10;
382382
s->s_magic = DEVPTS_SUPER_MAGIC;
383383
s->s_op = &devpts_sops;
384-
set_default_d_op(s, &simple_dentry_operations);
384+
s->s_d_flags = DCACHE_DONTCACHE;
385385
s->s_time_gran = 1;
386386
fsi->sb = s;
387387

fs/hostfs/hostfs_kern.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ static int hostfs_fill_super(struct super_block *sb, struct fs_context *fc)
933933
sb->s_blocksize_bits = 10;
934934
sb->s_magic = HOSTFS_SUPER_MAGIC;
935935
sb->s_op = &hostfs_sbops;
936-
set_default_d_op(sb, &simple_dentry_operations);
936+
sb->s_d_flags = DCACHE_DONTCACHE;
937937
sb->s_maxbytes = MAX_LFS_FILESIZE;
938938
err = super_setup_bdi(sb);
939939
if (err)

net/sunrpc/rpc_pipe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1363,7 +1363,7 @@ rpc_fill_super(struct super_block *sb, struct fs_context *fc)
13631363
sb->s_blocksize_bits = PAGE_SHIFT;
13641364
sb->s_magic = RPCAUTH_GSSMAGIC;
13651365
sb->s_op = &s_ops;
1366-
set_default_d_op(sb, &simple_dentry_operations);
1366+
sb->s_d_flags = DCACHE_DONTCACHE;
13671367
sb->s_time_gran = 1;
13681368

13691369
inode = rpc_get_inode(sb, S_IFDIR | 0555);

0 commit comments

Comments
 (0)