diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-08 22:15:13 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-03-20 21:29:35 -0400 |
commit | 48fde701aff662559b38d9a609574068f22d00fe (patch) | |
tree | aa6b203dc671b51d58575b65eb08310ff8309b60 /fs/hppfs/hppfs.c | |
parent | 6b4231e2f92adbcf96fb2a3fa751d7ca0a61b21f (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/hppfs/hppfs.c')
-rw-r--r-- | fs/hppfs/hppfs.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/fs/hppfs/hppfs.c b/fs/hppfs/hppfs.c index d92f4ce80925..a80e45a690ac 100644 --- a/fs/hppfs/hppfs.c +++ b/fs/hppfs/hppfs.c | |||
@@ -726,17 +726,12 @@ static int hppfs_fill_super(struct super_block *sb, void *d, int silent) | |||
726 | 726 | ||
727 | err = -ENOMEM; | 727 | err = -ENOMEM; |
728 | root_inode = get_inode(sb, dget(proc_mnt->mnt_root)); | 728 | root_inode = get_inode(sb, dget(proc_mnt->mnt_root)); |
729 | if (!root_inode) | 729 | sb->s_root = d_make_root(root_inode); |
730 | goto out_mntput; | ||
731 | |||
732 | sb->s_root = d_alloc_root(root_inode); | ||
733 | if (!sb->s_root) | 730 | if (!sb->s_root) |
734 | goto out_iput; | 731 | goto out_mntput; |
735 | 732 | ||
736 | return 0; | 733 | return 0; |
737 | 734 | ||
738 | out_iput: | ||
739 | iput(root_inode); | ||
740 | out_mntput: | 735 | out_mntput: |
741 | mntput(proc_mnt); | 736 | mntput(proc_mnt); |
742 | out: | 737 | out: |