switch open-coded instances of d_make_root() to new helper
[deliverable/linux.git] / fs / cramfs / inode.c
index a2ee8f9f5a387ed683733d1f8d434357a31b138f..853480d2b3d1c21cd962a1834d96fa569be7e627 100644 (file)
@@ -318,11 +318,9 @@ static int cramfs_fill_super(struct super_block *sb, void *data, int silent)
        root = get_cramfs_inode(sb, &super.root, 0);
        if (IS_ERR(root))
                goto out;
-       sb->s_root = d_alloc_root(root);
-       if (!sb->s_root) {
-               iput(root);
+       sb->s_root = d_make_root(root);
+       if (!sb->s_root)
                goto out;
-       }
        return 0;
 out:
        kfree(sbi);
This page took 0.024356 seconds and 5 git commands to generate.