xfs: Remove the macro XFS_BUF_BFLAGS
Remove the definition of the macro XFS_BUF_BFLAGS and its usage. Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Alex Elder <aelder@sgi.com>
This commit is contained in:
committed by
Alex Elder
parent
55fb25d5b3
commit
ed43233be9
@@ -1094,7 +1094,7 @@ STATIC int
|
|||||||
xfs_bioerror_relse(
|
xfs_bioerror_relse(
|
||||||
struct xfs_buf *bp)
|
struct xfs_buf *bp)
|
||||||
{
|
{
|
||||||
int64_t fl = XFS_BUF_BFLAGS(bp);
|
int64_t fl = bp->b_flags;
|
||||||
/*
|
/*
|
||||||
* No need to wait until the buffer is unpinned.
|
* No need to wait until the buffer is unpinned.
|
||||||
* We aren't flushing it.
|
* We aren't flushing it.
|
||||||
|
@@ -232,7 +232,6 @@ extern void xfs_buf_terminate(void);
|
|||||||
({ char __b[BDEVNAME_SIZE]; bdevname((target)->bt_bdev, __b); __b; })
|
({ char __b[BDEVNAME_SIZE]; bdevname((target)->bt_bdev, __b); __b; })
|
||||||
|
|
||||||
|
|
||||||
#define XFS_BUF_BFLAGS(bp) ((bp)->b_flags)
|
|
||||||
#define XFS_BUF_ZEROFLAGS(bp) \
|
#define XFS_BUF_ZEROFLAGS(bp) \
|
||||||
((bp)->b_flags &= ~(XBF_READ|XBF_WRITE|XBF_ASYNC|XBF_DELWRI| \
|
((bp)->b_flags &= ~(XBF_READ|XBF_WRITE|XBF_ASYNC|XBF_DELWRI| \
|
||||||
XBF_SYNCIO|XBF_FUA|XBF_FLUSH))
|
XBF_SYNCIO|XBF_FUA|XBF_FLUSH))
|
||||||
|
@@ -430,7 +430,7 @@ shutdown_abort:
|
|||||||
if (XFS_BUF_ISSTALE(bp) && XFS_BUF_ISDELAYWRITE(bp))
|
if (XFS_BUF_ISSTALE(bp) && XFS_BUF_ISDELAYWRITE(bp))
|
||||||
xfs_notice(mp, "about to pop assert, bp == 0x%p", bp);
|
xfs_notice(mp, "about to pop assert, bp == 0x%p", bp);
|
||||||
#endif
|
#endif
|
||||||
ASSERT((XFS_BUF_BFLAGS(bp) & (XBF_STALE|XBF_DELWRI)) !=
|
ASSERT((bp->b_flags & (XBF_STALE|XBF_DELWRI)) !=
|
||||||
(XBF_STALE|XBF_DELWRI));
|
(XBF_STALE|XBF_DELWRI));
|
||||||
|
|
||||||
trace_xfs_trans_read_buf_shut(bp, _RET_IP_);
|
trace_xfs_trans_read_buf_shut(bp, _RET_IP_);
|
||||||
|
Reference in New Issue
Block a user