aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_mount.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2012-10-09 15:20:05 -0400
committerThomas Gleixner <tglx@linutronix.de>2012-10-09 15:20:05 -0400
commitdb8c246937713e60b7628661ccc187eeb81f2bae (patch)
tree6351e8bca23eef40fce85396d1c6f6cfffbd4b66 /fs/xfs/xfs_mount.c
parentc5f66e99b7cb091e3d51ae8e8156892e8feb7fa3 (diff)
parent28f2b02bc581ffc835bc1691b18d03f62fcf0395 (diff)
Merge branch 'fortglx/3.7/time' of git://git.linaro.org/people/jstultz/linux into timers/core
Diffstat (limited to 'fs/xfs/xfs_mount.c')
-rw-r--r--fs/xfs/xfs_mount.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c
index 536021fb3d4..29c2f83d414 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);
@@ -1544,7 +1551,7 @@ xfs_unmountfs(
1544int 1551int
1545xfs_fs_writable(xfs_mount_t *mp) 1552xfs_fs_writable(xfs_mount_t *mp)
1546{ 1553{
1547 return !(xfs_test_for_freeze(mp) || XFS_FORCED_SHUTDOWN(mp) || 1554 return !(mp->m_super->s_writers.frozen || XFS_FORCED_SHUTDOWN(mp) ||
1548 (mp->m_flags & XFS_MOUNT_RDONLY)); 1555 (mp->m_flags & XFS_MOUNT_RDONLY));
1549} 1556}
1550 1557