Skip to content

Commit dae3794

Browse files
author
Al Viro
committed
sunrpc: now we can just set ->s_d_op
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 786e144 commit dae3794

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

net/sunrpc/rpc_pipe.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -665,10 +665,8 @@ static struct dentry *__rpc_lookup_create_exclusive(struct dentry *parent,
665665
if (!dentry)
666666
return ERR_PTR(-ENOMEM);
667667
}
668-
if (dentry->d_inode == NULL) {
669-
d_set_d_op(dentry, &rpc_dentry_operations);
668+
if (dentry->d_inode == NULL)
670669
return dentry;
671-
}
672670
dput(dentry);
673671
return ERR_PTR(-EEXIST);
674672
}
@@ -1102,6 +1100,7 @@ rpc_fill_super(struct super_block *sb, void *data, int silent)
11021100
sb->s_blocksize_bits = PAGE_CACHE_SHIFT;
11031101
sb->s_magic = RPCAUTH_GSSMAGIC;
11041102
sb->s_op = &s_ops;
1103+
sb->s_d_op = &rpc_dentry_operations;
11051104
sb->s_time_gran = 1;
11061105

11071106
inode = rpc_get_inode(sb, S_IFDIR | S_IRUGO | S_IXUGO);

0 commit comments

Comments
 (0)