switch open-coded instances of d_make_root() to new helper

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro
2012-01-08 22:15:13 -05:00
parent 6b4231e2f9
commit 48fde701af
64 changed files with 105 additions and 264 deletions

View File

@@ -303,7 +303,7 @@ int pstore_fill_super(struct super_block *sb, void *data, int silent)
/* override ramfs "dir" options so we catch unlink(2) */
inode->i_op = &pstore_dir_inode_operations;
root = d_alloc_root(inode);
root = d_make_root(inode);
sb->s_root = root;
if (!root) {
err = -ENOMEM;
@@ -314,7 +314,6 @@ int pstore_fill_super(struct super_block *sb, void *data, int silent)
return 0;
fail:
iput(inode);
return err;
}