Commit fc7bed8c authored by Al Viro's avatar Al Viro

Don't bother with d_genocide in rpc_pipe

kill_litter_super() from ->kill_sb() will take care of the junk
parent 5b7e934d
...@@ -999,19 +999,14 @@ rpc_fill_super(struct super_block *sb, void *data, int silent) ...@@ -999,19 +999,14 @@ rpc_fill_super(struct super_block *sb, void *data, int silent)
inode = rpc_get_inode(sb, S_IFDIR | 0755); inode = rpc_get_inode(sb, S_IFDIR | 0755);
if (!inode) if (!inode)
return -ENOMEM; return -ENOMEM;
root = d_alloc_root(inode); sb->s_root = root = d_alloc_root(inode);
if (!root) { if (!root) {
iput(inode); iput(inode);
return -ENOMEM; return -ENOMEM;
} }
if (rpc_populate(root, files, RPCAUTH_lockd, RPCAUTH_RootEOF, NULL)) if (rpc_populate(root, files, RPCAUTH_lockd, RPCAUTH_RootEOF, NULL))
goto out; return -ENOMEM;
sb->s_root = root;
return 0; return 0;
out:
d_genocide(root);
dput(root);
return -ENOMEM;
} }
static int static int
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment