aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_super.c')
-rw-r--r--fs/xfs/linux-2.6/xfs_super.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c
index 0d9b64b219e0..d4e7ef8f8df9 100644
--- a/fs/xfs/linux-2.6/xfs_super.c
+++ b/fs/xfs/linux-2.6/xfs_super.c
@@ -1071,7 +1071,18 @@ xfs_fs_put_super(
1071 int unmount_event_flags = 0; 1071 int unmount_event_flags = 0;
1072 1072
1073 xfs_syncd_stop(mp); 1073 xfs_syncd_stop(mp);
1074 xfs_sync_inodes(mp, SYNC_ATTR|SYNC_DELWRI); 1074
1075 if (!(sb->s_flags & MS_RDONLY)) {
1076 /*
1077 * XXX(hch): this should be SYNC_WAIT.
1078 *
1079 * Or more likely not needed at all because the VFS is already
1080 * calling ->sync_fs after shutting down all filestem
1081 * operations and just before calling ->put_super.
1082 */
1083 xfs_sync_data(mp, 0);
1084 xfs_sync_attr(mp, 0);
1085 }
1075 1086
1076#ifdef HAVE_DMAPI 1087#ifdef HAVE_DMAPI
1077 if (mp->m_flags & XFS_MOUNT_DMAPI) { 1088 if (mp->m_flags & XFS_MOUNT_DMAPI) {