diff options
Diffstat (limited to 'fs/xfs/xfs_super.c')
-rw-r--r-- | fs/xfs/xfs_super.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index ee5b695c99a7..baf40e378d35 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c | |||
@@ -1341,6 +1341,7 @@ xfs_fs_fill_super( | |||
1341 | sb->s_blocksize = mp->m_sb.sb_blocksize; | 1341 | sb->s_blocksize = mp->m_sb.sb_blocksize; |
1342 | sb->s_blocksize_bits = ffs(sb->s_blocksize) - 1; | 1342 | sb->s_blocksize_bits = ffs(sb->s_blocksize) - 1; |
1343 | sb->s_maxbytes = xfs_max_file_offset(sb->s_blocksize_bits); | 1343 | sb->s_maxbytes = xfs_max_file_offset(sb->s_blocksize_bits); |
1344 | sb->s_max_links = XFS_MAXLINK; | ||
1344 | sb->s_time_gran = 1; | 1345 | sb->s_time_gran = 1; |
1345 | set_posix_acl_flag(sb); | 1346 | set_posix_acl_flag(sb); |
1346 | 1347 | ||
@@ -1361,10 +1362,10 @@ xfs_fs_fill_super( | |||
1361 | error = EINVAL; | 1362 | error = EINVAL; |
1362 | goto out_syncd_stop; | 1363 | goto out_syncd_stop; |
1363 | } | 1364 | } |
1364 | sb->s_root = d_alloc_root(root); | 1365 | sb->s_root = d_make_root(root); |
1365 | if (!sb->s_root) { | 1366 | if (!sb->s_root) { |
1366 | error = ENOMEM; | 1367 | error = ENOMEM; |
1367 | goto out_iput; | 1368 | goto out_syncd_stop; |
1368 | } | 1369 | } |
1369 | 1370 | ||
1370 | return 0; | 1371 | return 0; |
@@ -1383,8 +1384,6 @@ xfs_fs_fill_super( | |||
1383 | out: | 1384 | out: |
1384 | return -error; | 1385 | return -error; |
1385 | 1386 | ||
1386 | out_iput: | ||
1387 | iput(root); | ||
1388 | out_syncd_stop: | 1387 | out_syncd_stop: |
1389 | xfs_syncd_stop(mp); | 1388 | xfs_syncd_stop(mp); |
1390 | out_unmount: | 1389 | out_unmount: |