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/ubifs | |
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/ubifs')
-rw-r--r-- | fs/ubifs/super.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index 63765d58445b..76e4e0566ad6 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c | |||
@@ -2076,15 +2076,13 @@ static int ubifs_fill_super(struct super_block *sb, void *data, int silent) | |||
2076 | goto out_umount; | 2076 | goto out_umount; |
2077 | } | 2077 | } |
2078 | 2078 | ||
2079 | sb->s_root = d_alloc_root(root); | 2079 | sb->s_root = d_make_root(root); |
2080 | if (!sb->s_root) | 2080 | if (!sb->s_root) |
2081 | goto out_iput; | 2081 | goto out_umount; |
2082 | 2082 | ||
2083 | mutex_unlock(&c->umount_mutex); | 2083 | mutex_unlock(&c->umount_mutex); |
2084 | return 0; | 2084 | return 0; |
2085 | 2085 | ||
2086 | out_iput: | ||
2087 | iput(root); | ||
2088 | out_umount: | 2086 | out_umount: |
2089 | ubifs_umount(c); | 2087 | ubifs_umount(c); |
2090 | out_unlock: | 2088 | out_unlock: |