[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>
This commit is contained in:
committed by
Lachlan McIlroy
parent
e9f1c6ee12
commit
cb56a4b995
@ -1026,16 +1026,6 @@ xfs_fs_put_super(
|
||||
error = xfs_unmount_flush(mp, 0);
|
||||
WARN_ON(error);
|
||||
|
||||
/*
|
||||
* If we're forcing a shutdown, typically because of a media error,
|
||||
* we want to make sure we invalidate dirty pages that belong to
|
||||
* referenced vnodes as well.
|
||||
*/
|
||||
if (XFS_FORCED_SHUTDOWN(mp)) {
|
||||
error = xfs_sync(mp, SYNC_WAIT | SYNC_CLOSE);
|
||||
ASSERT(error != EFSCORRUPTED);
|
||||
}
|
||||
|
||||
if (mp->m_flags & XFS_MOUNT_DMAPI) {
|
||||
XFS_SEND_UNMOUNT(mp, rip, DM_RIGHT_NULL, 0, 0,
|
||||
unmount_event_flags);
|
||||
|
Reference in New Issue
Block a user