Commit 168dba96 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Linus Torvalds

[XFS] remove a dead codepath in xfs_syncsub

SGI Modid: 2.5.x-xfs:slinx:138037a
parent be97a74b
......@@ -873,7 +873,6 @@ xfs_syncsub(
boolean_t mount_locked;
boolean_t vnode_refed;
int preempt;
int do_mmap_flush;
xfs_dinode_t *dip;
xfs_buf_log_item_t *bip;
xfs_iptr_t *ipointer;
......@@ -944,8 +943,6 @@ xfs_syncsub(
fflag = XFS_B_DELWRI;
if (flags & SYNC_WAIT)
fflag = 0; /* synchronous overrides all */
do_mmap_flush = (flags & (SYNC_DELWRI|SYNC_BDFLUSH)) !=
(SYNC_DELWRI|SYNC_BDFLUSH);
base_lock_flags = XFS_ILOCK_SHARED;
if (flags & (SYNC_DELWRI | SYNC_CLOSE)) {
......@@ -1177,12 +1174,8 @@ xfs_syncsub(
* across calls to the buffer cache.
*/
xfs_iunlock(ip, XFS_ILOCK_SHARED);
if (do_mmap_flush) {
VOP_FLUSH_PAGES(vp, (xfs_off_t)0, -1,
fflag, FI_NONE, error);
} else {
filemap_fdatawrite(LINVFS_GET_IP(vp)->i_mapping);
}
xfs_ilock(ip, XFS_ILOCK_SHARED);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment