1
0
Fork 0

Don't bother with d_genocide in rpc_pipe

kill_litter_super() from ->kill_sb() will take care of the junk
wifi-calibration
Al Viro 2010-01-25 18:30:38 -05:00
parent 5b7e934d88
commit fc7bed8c80
1 changed files with 2 additions and 7 deletions

View File

@ -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