switch open-coded instances of d_make_root() to new helper
[deliverable/linux.git] / fs / nilfs2 / super.c
index 1fc9ad3c1d14707bdd2cf0349e3b1ea5cf7450a2..1099a76cee5962838841a9719a0758e4defcb2d3 100644 (file)
@@ -917,9 +917,8 @@ static int nilfs_get_root_dentry(struct super_block *sb,
        if (root->cno == NILFS_CPTREE_CURRENT_CNO) {
                dentry = d_find_alias(inode);
                if (!dentry) {
-                       dentry = d_alloc_root(inode);
+                       dentry = d_make_root(inode);
                        if (!dentry) {
-                               iput(inode);
                                ret = -ENOMEM;
                                goto failed_dentry;
                        }
This page took 0.026134 seconds and 5 git commands to generate.