[prev in list] [next in list] [prev in thread] [next in thread]
List: git-commits-24
Subject: [XFS] Ensure sb not flushed async on a SYNC_WAIT sync. Fixed by Bart Samwel.
From: Linux Kernel Mailing List <linux-kernel () vger ! kernel ! org>
Date: 2004-03-31 22:31:38
Message-ID: 200404021303.i32D323g001673 () hera ! kernel ! org
[Download RAW message or body]
ChangeSet 1.1302.56.10, 2004/04/01 08:31:38+10:00, nathans@sgi.com
[XFS] Ensure sb not flushed async on a SYNC_WAIT sync. Fixed by Bart Samwel.
SGI Modid: xfs-linux:xfs-kern:169208a
# This patch includes the following deltas:
# ChangeSet 1.1302.56.9 -> 1.1302.56.10
# fs/xfs/xfs_vfsops.c 1.185 -> 1.186
#
xfs_vfsops.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff -Nru a/fs/xfs/xfs_vfsops.c b/fs/xfs/xfs_vfsops.c
--- a/fs/xfs/xfs_vfsops.c Fri Apr 2 05:03:04 2004
+++ b/fs/xfs/xfs_vfsops.c Fri Apr 2 05:03:04 2004
@@ -1485,8 +1485,10 @@
*/
if (XFS_BUF_ISPINNED(bp))
xfs_log_force(mp, (xfs_lsn_t)0, XFS_LOG_FORCE);
- if (!(flags & SYNC_WAIT))
- XFS_BUF_BFLAGS(bp) |= XFS_B_ASYNC;
+ if (flags & SYNC_WAIT)
+ XFS_BUF_UNASYNC(bp);
+ else
+ XFS_BUF_ASYNC(bp);
error = xfs_bwrite(mp, bp);
}
if (error) {
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-24" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic