switch open-coded instances of d_make_root() to new helper
[deliverable/linux.git] / fs / coda / inode.c
index 32dafc875c1400f071ccca056e4b3406b13f30bb..05156c17b551de2f8a02a043018cc66b49b6ce41 100644 (file)
@@ -213,9 +213,8 @@ static int coda_fill_super(struct super_block *sb, void *data, int silent)
 
        printk("coda_read_super: rootinode is %ld dev %s\n", 
               root->i_ino, root->i_sb->s_id);
-       sb->s_root = d_alloc_root(root);
+       sb->s_root = d_make_root(root);
        if (!sb->s_root) {
-               iput(root);
                error = -EINVAL;
                goto error;
        }
This page took 0.023697 seconds and 5 git commands to generate.