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/befs | |
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/befs')
-rw-r--r-- | fs/befs/linuxvfs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index 6e6d536767fe..e18da23d42b5 100644 --- a/fs/befs/linuxvfs.c +++ b/fs/befs/linuxvfs.c | |||
@@ -852,9 +852,8 @@ befs_fill_super(struct super_block *sb, void *data, int silent) | |||
852 | ret = PTR_ERR(root); | 852 | ret = PTR_ERR(root); |
853 | goto unacquire_priv_sbp; | 853 | goto unacquire_priv_sbp; |
854 | } | 854 | } |
855 | sb->s_root = d_alloc_root(root); | 855 | sb->s_root = d_make_root(root); |
856 | if (!sb->s_root) { | 856 | if (!sb->s_root) { |
857 | iput(root); | ||
858 | befs_error(sb, "get root inode failed"); | 857 | befs_error(sb, "get root inode failed"); |
859 | goto unacquire_priv_sbp; | 858 | goto unacquire_priv_sbp; |
860 | } | 859 | } |