aboutsummaryrefslogtreecommitdiffstats
path: root/fs/reiserfs/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/reiserfs/super.c')
-rw-r--r--fs/reiserfs/super.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/reiserfs/super.c b/fs/reiserfs/super.c
index 0ae6486d9046..d444fe0013a4 100644
--- a/fs/reiserfs/super.c
+++ b/fs/reiserfs/super.c
@@ -1842,7 +1842,8 @@ static int reiserfs_fill_super(struct super_block *s, void *data, int silent)
1842 goto error; 1842 goto error;
1843 } 1843 }
1844 1844
1845 if ((errval = reiserfs_xattr_init(s, s->s_flags))) { 1845 if ((errval = reiserfs_lookup_privroot(s)) ||
1846 (errval = reiserfs_xattr_init(s, s->s_flags))) {
1846 dput(s->s_root); 1847 dput(s->s_root);
1847 s->s_root = NULL; 1848 s->s_root = NULL;
1848 goto error; 1849 goto error;
@@ -1855,7 +1856,8 @@ static int reiserfs_fill_super(struct super_block *s, void *data, int silent)
1855 reiserfs_info(s, "using 3.5.x disk format\n"); 1856 reiserfs_info(s, "using 3.5.x disk format\n");
1856 } 1857 }
1857 1858
1858 if ((errval = reiserfs_xattr_init(s, s->s_flags))) { 1859 if ((errval = reiserfs_lookup_privroot(s)) ||
1860 (errval = reiserfs_xattr_init(s, s->s_flags))) {
1859 dput(s->s_root); 1861 dput(s->s_root);
1860 s->s_root = NULL; 1862 s->s_root = NULL;
1861 goto error; 1863 goto error;