Skip to content

Commit

Permalink
Don't bother with d_genocide in rpc_pipe
Browse files Browse the repository at this point in the history
kill_litter_super() from ->kill_sb() will take care of the junk
  • Loading branch information
Al Viro committed Mar 3, 2010
1 parent 5b7e934 commit fc7bed8
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions net/sunrpc/rpc_pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -999,19 +999,14 @@ rpc_fill_super(struct super_block *sb, void *data, int silent)
inode = rpc_get_inode(sb, S_IFDIR | 0755);
if (!inode)
return -ENOMEM;
root = d_alloc_root(inode);
sb->s_root = root = d_alloc_root(inode);
if (!root) {
iput(inode);
return -ENOMEM;
}
if (rpc_populate(root, files, RPCAUTH_lockd, RPCAUTH_RootEOF, NULL))
goto out;
sb->s_root = root;
return -ENOMEM;
return 0;
out:
d_genocide(root);
dput(root);
return -ENOMEM;
}

static int
Expand Down

0 comments on commit fc7bed8

Please sign in to comment.