diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-07-14 15:55:39 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-07-14 15:55:39 +0200 |
commit | dae3794fd603b92dcbac2859fe0bc7fe129a5188 (patch) | |
tree | cb6f142aeb4089e23e85fd9732d628b82ae5f667 | |
parent | cgroup: we can use simple_lookup() now (diff) | |
download | linux-dae3794fd603b92dcbac2859fe0bc7fe129a5188.tar.xz linux-dae3794fd603b92dcbac2859fe0bc7fe129a5188.zip |
sunrpc: now we can just set ->s_d_op
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | net/sunrpc/rpc_pipe.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index 27e54d265705..260fe72656a1 100644 --- a/net/sunrpc/rpc_pipe.c +++ b/net/sunrpc/rpc_pipe.c @@ -665,10 +665,8 @@ static struct dentry *__rpc_lookup_create_exclusive(struct dentry *parent, if (!dentry) return ERR_PTR(-ENOMEM); } - if (dentry->d_inode == NULL) { - d_set_d_op(dentry, &rpc_dentry_operations); + if (dentry->d_inode == NULL) return dentry; - } dput(dentry); return ERR_PTR(-EEXIST); } @@ -1102,6 +1100,7 @@ rpc_fill_super(struct super_block *sb, void *data, int silent) sb->s_blocksize_bits = PAGE_CACHE_SHIFT; sb->s_magic = RPCAUTH_GSSMAGIC; sb->s_op = &s_ops; + sb->s_d_op = &rpc_dentry_operations; sb->s_time_gran = 1; inode = rpc_get_inode(sb, S_IFDIR | S_IRUGO | S_IXUGO); |