|
@@ -1212,7 +1212,7 @@ xlog_iodone(xfs_buf_t *bp)
|
|
}
|
|
}
|
|
|
|
|
|
/* log I/O is always issued ASYNC */
|
|
/* log I/O is always issued ASYNC */
|
|
- ASSERT(XFS_BUF_ISASYNC(bp));
|
|
|
|
|
|
+ ASSERT(bp->b_flags & XBF_ASYNC);
|
|
xlog_state_done_syncing(iclog, aborted);
|
|
xlog_state_done_syncing(iclog, aborted);
|
|
|
|
|
|
/*
|
|
/*
|
|
@@ -1865,8 +1865,7 @@ xlog_sync(
|
|
bp->b_io_length = BTOBB(count);
|
|
bp->b_io_length = BTOBB(count);
|
|
bp->b_fspriv = iclog;
|
|
bp->b_fspriv = iclog;
|
|
XFS_BUF_ZEROFLAGS(bp);
|
|
XFS_BUF_ZEROFLAGS(bp);
|
|
- XFS_BUF_ASYNC(bp);
|
|
|
|
- bp->b_flags |= XBF_SYNCIO;
|
|
|
|
|
|
+ bp->b_flags |= (XBF_ASYNC | XBF_SYNCIO);
|
|
|
|
|
|
if (log->l_mp->m_flags & XFS_MOUNT_BARRIER) {
|
|
if (log->l_mp->m_flags & XFS_MOUNT_BARRIER) {
|
|
bp->b_flags |= XBF_FUA;
|
|
bp->b_flags |= XBF_FUA;
|
|
@@ -1911,8 +1910,7 @@ xlog_sync(
|
|
(char *)&iclog->ic_header + count, split);
|
|
(char *)&iclog->ic_header + count, split);
|
|
bp->b_fspriv = iclog;
|
|
bp->b_fspriv = iclog;
|
|
XFS_BUF_ZEROFLAGS(bp);
|
|
XFS_BUF_ZEROFLAGS(bp);
|
|
- XFS_BUF_ASYNC(bp);
|
|
|
|
- bp->b_flags |= XBF_SYNCIO;
|
|
|
|
|
|
+ bp->b_flags |= (XBF_ASYNC | XBF_SYNCIO);
|
|
if (log->l_mp->m_flags & XFS_MOUNT_BARRIER)
|
|
if (log->l_mp->m_flags & XFS_MOUNT_BARRIER)
|
|
bp->b_flags |= XBF_FUA;
|
|
bp->b_flags |= XBF_FUA;
|
|
|
|
|