diff options
Diffstat (limited to 'fs/omfs/inode.c')
-rw-r--r-- | fs/omfs/inode.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/omfs/inode.c b/fs/omfs/inode.c index 6065bb0ba207..dbc842222589 100644 --- a/fs/omfs/inode.c +++ b/fs/omfs/inode.c | |||
@@ -539,11 +539,9 @@ static int omfs_fill_super(struct super_block *sb, void *data, int silent) | |||
539 | goto out_brelse_bh2; | 539 | goto out_brelse_bh2; |
540 | } | 540 | } |
541 | 541 | ||
542 | sb->s_root = d_alloc_root(root); | 542 | sb->s_root = d_make_root(root); |
543 | if (!sb->s_root) { | 543 | if (!sb->s_root) |
544 | iput(root); | ||
545 | goto out_brelse_bh2; | 544 | goto out_brelse_bh2; |
546 | } | ||
547 | printk(KERN_DEBUG "omfs: Mounted volume %s\n", omfs_rb->r_name); | 545 | printk(KERN_DEBUG "omfs: Mounted volume %s\n", omfs_rb->r_name); |
548 | 546 | ||
549 | ret = 0; | 547 | ret = 0; |