diff options
Diffstat (limited to 'fs/xfs/xfs_mount.c')
-rw-r--r-- | fs/xfs/xfs_mount.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c index b09a4a7eb640..29c2f83d4147 100644 --- a/fs/xfs/xfs_mount.c +++ b/fs/xfs/xfs_mount.c | |||
@@ -1200,8 +1200,6 @@ xfs_mountfs( | |||
1200 | 1200 | ||
1201 | xfs_set_maxicount(mp); | 1201 | xfs_set_maxicount(mp); |
1202 | 1202 | ||
1203 | mp->m_maxioffset = xfs_max_file_offset(sbp->sb_blocklog); | ||
1204 | |||
1205 | error = xfs_uuid_mount(mp); | 1203 | error = xfs_uuid_mount(mp); |
1206 | if (error) | 1204 | if (error) |
1207 | goto out; | 1205 | goto out; |
@@ -1531,6 +1529,15 @@ xfs_unmountfs( | |||
1531 | xfs_ail_push_all_sync(mp->m_ail); | 1529 | xfs_ail_push_all_sync(mp->m_ail); |
1532 | xfs_wait_buftarg(mp->m_ddev_targp); | 1530 | xfs_wait_buftarg(mp->m_ddev_targp); |
1533 | 1531 | ||
1532 | /* | ||
1533 | * The superblock buffer is uncached and xfsaild_push() will lock and | ||
1534 | * set the XBF_ASYNC flag on the buffer. We cannot do xfs_buf_iowait() | ||
1535 | * here but a lock on the superblock buffer will block until iodone() | ||
1536 | * has completed. | ||
1537 | */ | ||
1538 | xfs_buf_lock(mp->m_sb_bp); | ||
1539 | xfs_buf_unlock(mp->m_sb_bp); | ||
1540 | |||
1534 | xfs_log_unmount_write(mp); | 1541 | xfs_log_unmount_write(mp); |
1535 | xfs_log_unmount(mp); | 1542 | xfs_log_unmount(mp); |
1536 | xfs_uuid_unmount(mp); | 1543 | xfs_uuid_unmount(mp); |