aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_super.c
diff options
context:
space:
mode:
authorDavid Chinner <david@fromorbit.com>2008-10-30 02:16:00 -0400
committerLachlan McIlroy <lachlan@sgi.com>2008-10-30 02:16:00 -0400
commitcb56a4b995d44b7990ca3acd18db571eedd0649f (patch)
tree85fad110902a8929593fb5820c61fae7d56ac8a1 /fs/xfs/linux-2.6/xfs_super.c
parente9f1c6ee12955fd8657f6f0f9a3d09112b1f1fdd (diff)
[XFS] Kill SYNC_CLOSE
SYNC_CLOSE is only ever used and checked in conjunction with SYNC_WAIT, and this only done in one spot. The only thing this does is make XFS_bflush() calls to the data buftargs. This will happen very shortly afterwards the xfs_sync() call anyway in the unmount path via the xfs_close_devices(), so this code is redundant and can be removed. That only user of SYNC_CLOSE is now gone, so kill the flag completely. SGI-PV: 988140 SGI-Modid: xfs-linux-melb:xfs-kern:32310a Signed-off-by: David Chinner <david@fromorbit.com> Signed-off-by: Lachlan McIlroy <lachlan@sgi.com> Signed-off-by: Christoph Hellwig <hch@infradead.org>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_super.c')
-rw-r--r--fs/xfs/linux-2.6/xfs_super.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c
index 376f32d92475..60ecf47b9f05 100644
--- a/fs/xfs/linux-2.6/xfs_super.c
+++ b/fs/xfs/linux-2.6/xfs_super.c
@@ -1026,16 +1026,6 @@ xfs_fs_put_super(
1026 error = xfs_unmount_flush(mp, 0); 1026 error = xfs_unmount_flush(mp, 0);
1027 WARN_ON(error); 1027 WARN_ON(error);
1028 1028
1029 /*
1030 * If we're forcing a shutdown, typically because of a media error,
1031 * we want to make sure we invalidate dirty pages that belong to
1032 * referenced vnodes as well.
1033 */
1034 if (XFS_FORCED_SHUTDOWN(mp)) {
1035 error = xfs_sync(mp, SYNC_WAIT | SYNC_CLOSE);
1036 ASSERT(error != EFSCORRUPTED);
1037 }
1038
1039 if (mp->m_flags & XFS_MOUNT_DMAPI) { 1029 if (mp->m_flags & XFS_MOUNT_DMAPI) {
1040 XFS_SEND_UNMOUNT(mp, rip, DM_RIGHT_NULL, 0, 0, 1030 XFS_SEND_UNMOUNT(mp, rip, DM_RIGHT_NULL, 0, 0,
1041 unmount_event_flags); 1031 unmount_event_flags);