diff options
Diffstat (limited to 'fs/reiserfs/super.c')
-rw-r--r-- | fs/reiserfs/super.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/reiserfs/super.c b/fs/reiserfs/super.c index e12d8b97cd4d..208dfd144409 100644 --- a/fs/reiserfs/super.c +++ b/fs/reiserfs/super.c | |||
@@ -1874,11 +1874,9 @@ static int reiserfs_fill_super(struct super_block *s, void *data, int silent) | |||
1874 | unlock_new_inode(root_inode); | 1874 | unlock_new_inode(root_inode); |
1875 | } | 1875 | } |
1876 | 1876 | ||
1877 | s->s_root = d_alloc_root(root_inode); | 1877 | s->s_root = d_make_root(root_inode); |
1878 | if (!s->s_root) { | 1878 | if (!s->s_root) |
1879 | iput(root_inode); | ||
1880 | goto error; | 1879 | goto error; |
1881 | } | ||
1882 | // define and initialize hash function | 1880 | // define and initialize hash function |
1883 | sbi->s_hash_function = hash_function(s); | 1881 | sbi->s_hash_function = hash_function(s); |
1884 | if (sbi->s_hash_function == NULL) { | 1882 | if (sbi->s_hash_function == NULL) { |