xfs: remove wrappers around b_iodone
Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Alex Elder <aelder@sgi.com> Reviewed-by: Dave Chinner <dchinner@redhat.com>
This commit is contained in:
@@ -635,8 +635,8 @@ xfs_trans_log_buf(xfs_trans_t *tp,
|
||||
ASSERT(bp->b_transp == tp);
|
||||
ASSERT(bip != NULL);
|
||||
ASSERT((first <= last) && (last < XFS_BUF_COUNT(bp)));
|
||||
ASSERT((XFS_BUF_IODONE_FUNC(bp) == NULL) ||
|
||||
(XFS_BUF_IODONE_FUNC(bp) == xfs_buf_iodone_callbacks));
|
||||
ASSERT(bp->b_iodone == NULL ||
|
||||
bp->b_iodone == xfs_buf_iodone_callbacks);
|
||||
|
||||
/*
|
||||
* Mark the buffer as needing to be written out eventually,
|
||||
@@ -652,7 +652,7 @@ xfs_trans_log_buf(xfs_trans_t *tp,
|
||||
XFS_BUF_DONE(bp);
|
||||
|
||||
ASSERT(atomic_read(&bip->bli_refcount) > 0);
|
||||
XFS_BUF_SET_IODONE_FUNC(bp, xfs_buf_iodone_callbacks);
|
||||
bp->b_iodone = xfs_buf_iodone_callbacks;
|
||||
bip->bli_item.li_cb = xfs_buf_iodone;
|
||||
|
||||
trace_xfs_trans_log_buf(bip);
|
||||
|
Reference in New Issue
Block a user