aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jfs/super.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-01-08 22:15:13 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2012-03-20 21:29:35 -0400
commit48fde701aff662559b38d9a609574068f22d00fe (patch)
treeaa6b203dc671b51d58575b65eb08310ff8309b60 /fs/jfs/super.c
parent6b4231e2f92adbcf96fb2a3fa751d7ca0a61b21f (diff)
switch open-coded instances of d_make_root() to new helper
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/jfs/super.c')
-rw-r--r--fs/jfs/super.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/jfs/super.c b/fs/jfs/super.c
index 4661ad705130..b3bb95504479 100644
--- a/fs/jfs/super.c
+++ b/fs/jfs/super.c
@@ -522,7 +522,7 @@ static int jfs_fill_super(struct super_block *sb, void *data, int silent)
522 ret = PTR_ERR(inode); 522 ret = PTR_ERR(inode);
523 goto out_no_rw; 523 goto out_no_rw;
524 } 524 }
525 sb->s_root = d_alloc_root(inode); 525 sb->s_root = d_make_root(inode);
526 if (!sb->s_root) 526 if (!sb->s_root)
527 goto out_no_root; 527 goto out_no_root;
528 528
@@ -540,7 +540,6 @@ static int jfs_fill_super(struct super_block *sb, void *data, int silent)
540 540
541out_no_root: 541out_no_root:
542 jfs_err("jfs_read_super: get root dentry failed"); 542 jfs_err("jfs_read_super: get root dentry failed");
543 iput(inode);
544 543
545out_no_rw: 544out_no_rw:
546 rc = jfs_umount(sb); 545 rc = jfs_umount(sb);