xfs: remove XBF_DONE flag wrapper macros
They only set/clear/check a flag, no need for obfuscating this with a macro. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:

committad av
Dave Chinner

förälder
36f90b0a2d
incheckning
b0388bf108
@@ -493,7 +493,7 @@ xfs_buf_item_unpin(
|
||||
xfs_buf_hold(bp);
|
||||
bp->b_flags |= XBF_ASYNC;
|
||||
xfs_buf_ioerror(bp, -EIO);
|
||||
XFS_BUF_UNDONE(bp);
|
||||
bp->b_flags &= ~XBF_DONE;
|
||||
xfs_buf_stale(bp);
|
||||
xfs_buf_ioend(bp);
|
||||
}
|
||||
@@ -1067,7 +1067,7 @@ xfs_buf_iodone_callbacks(
|
||||
*/
|
||||
if (XFS_FORCED_SHUTDOWN(mp)) {
|
||||
xfs_buf_stale(bp);
|
||||
XFS_BUF_DONE(bp);
|
||||
bp->b_flags |= XBF_DONE;
|
||||
trace_xfs_buf_item_iodone(bp, _RET_IP_);
|
||||
goto do_callbacks;
|
||||
}
|
||||
@@ -1113,7 +1113,7 @@ xfs_buf_iodone_callbacks(
|
||||
* sure to return the error to the caller of xfs_bwrite().
|
||||
*/
|
||||
xfs_buf_stale(bp);
|
||||
XFS_BUF_DONE(bp);
|
||||
bp->b_flags |= XBF_DONE;
|
||||
|
||||
trace_xfs_buf_error_relse(bp, _RET_IP_);
|
||||
|
||||
|
Referens i nytt ärende
Block a user