mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-18 18:23:53 +08:00
xfs: Remove macro XFS_BUF_BUSY and family
Remove the definitions and uses of the macros XFS_BUF_BUSY, XFS_BUF_UNBUSY, and XFS_BUF_ISBUSY. 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:
parent
5a52c2a581
commit
b75e40a419
@ -679,7 +679,6 @@ xfs_buf_read_uncached(
|
||||
/* set up the buffer for a read IO */
|
||||
XFS_BUF_SET_ADDR(bp, daddr);
|
||||
XFS_BUF_READ(bp);
|
||||
XFS_BUF_BUSY(bp);
|
||||
|
||||
xfsbdstrat(mp, bp);
|
||||
error = xfs_buf_iowait(bp);
|
||||
|
@ -254,10 +254,6 @@ void xfs_buf_stale(struct xfs_buf *bp);
|
||||
#define XFS_BUF_UNDONE(bp) ((bp)->b_flags &= ~XBF_DONE)
|
||||
#define XFS_BUF_ISDONE(bp) ((bp)->b_flags & XBF_DONE)
|
||||
|
||||
#define XFS_BUF_BUSY(bp) do { } while (0)
|
||||
#define XFS_BUF_UNBUSY(bp) do { } while (0)
|
||||
#define XFS_BUF_ISBUSY(bp) (1)
|
||||
|
||||
#define XFS_BUF_ASYNC(bp) ((bp)->b_flags |= XBF_ASYNC)
|
||||
#define XFS_BUF_UNASYNC(bp) ((bp)->b_flags &= ~XBF_ASYNC)
|
||||
#define XFS_BUF_ISASYNC(bp) ((bp)->b_flags & XBF_ASYNC)
|
||||
|
@ -318,7 +318,6 @@ xfs_qm_init_dquot_blk(
|
||||
int curid, i;
|
||||
|
||||
ASSERT(tp);
|
||||
ASSERT(XFS_BUF_ISBUSY(bp));
|
||||
ASSERT(xfs_buf_islocked(bp));
|
||||
|
||||
d = (xfs_dqblk_t *)XFS_BUF_PTR(bp);
|
||||
@ -534,7 +533,6 @@ xfs_qm_dqtobp(
|
||||
return XFS_ERROR(error);
|
||||
}
|
||||
|
||||
ASSERT(XFS_BUF_ISBUSY(bp));
|
||||
ASSERT(xfs_buf_islocked(bp));
|
||||
|
||||
/*
|
||||
@ -553,7 +551,6 @@ xfs_qm_dqtobp(
|
||||
xfs_trans_brelse(tp, bp);
|
||||
return XFS_ERROR(EIO);
|
||||
}
|
||||
XFS_BUF_BUSY(bp); /* We dirtied this */
|
||||
}
|
||||
|
||||
*O_bpp = bp;
|
||||
@ -622,7 +619,6 @@ xfs_qm_dqread(
|
||||
* this particular dquot was repaired. We still aren't afraid to
|
||||
* brelse it because we have the changes incore.
|
||||
*/
|
||||
ASSERT(XFS_BUF_ISBUSY(bp));
|
||||
ASSERT(xfs_buf_islocked(bp));
|
||||
xfs_trans_brelse(tp, bp);
|
||||
|
||||
|
@ -371,7 +371,6 @@ xfs_buf_item_pin(
|
||||
{
|
||||
struct xfs_buf_log_item *bip = BUF_ITEM(lip);
|
||||
|
||||
ASSERT(XFS_BUF_ISBUSY(bip->bli_buf));
|
||||
ASSERT(atomic_read(&bip->bli_refcount) > 0);
|
||||
ASSERT((bip->bli_flags & XFS_BLI_LOGGED) ||
|
||||
(bip->bli_flags & XFS_BLI_STALE));
|
||||
@ -895,7 +894,6 @@ xfs_buf_attach_iodone(
|
||||
{
|
||||
xfs_log_item_t *head_lip;
|
||||
|
||||
ASSERT(XFS_BUF_ISBUSY(bp));
|
||||
ASSERT(xfs_buf_islocked(bp));
|
||||
|
||||
lip->li_cb = cb;
|
||||
|
@ -1051,7 +1051,6 @@ xlog_alloc_log(xfs_mount_t *mp,
|
||||
if (!bp)
|
||||
goto out_free_log;
|
||||
bp->b_iodone = xlog_iodone;
|
||||
ASSERT(XFS_BUF_ISBUSY(bp));
|
||||
ASSERT(xfs_buf_islocked(bp));
|
||||
log->l_xbuf = bp;
|
||||
|
||||
@ -1108,7 +1107,6 @@ xlog_alloc_log(xfs_mount_t *mp,
|
||||
iclog->ic_callback_tail = &(iclog->ic_callback);
|
||||
iclog->ic_datap = (char *)iclog->ic_data + log->l_iclog_hsize;
|
||||
|
||||
ASSERT(XFS_BUF_ISBUSY(iclog->ic_bp));
|
||||
ASSERT(xfs_buf_islocked(iclog->ic_bp));
|
||||
init_waitqueue_head(&iclog->ic_force_wait);
|
||||
init_waitqueue_head(&iclog->ic_write_wait);
|
||||
@ -1355,7 +1353,6 @@ xlog_sync(xlog_t *log,
|
||||
XFS_BUF_SET_COUNT(bp, count);
|
||||
bp->b_fspriv = iclog;
|
||||
XFS_BUF_ZEROFLAGS(bp);
|
||||
XFS_BUF_BUSY(bp);
|
||||
XFS_BUF_ASYNC(bp);
|
||||
bp->b_flags |= XBF_SYNCIO;
|
||||
|
||||
@ -1402,7 +1399,6 @@ xlog_sync(xlog_t *log,
|
||||
(__psint_t)count), split);
|
||||
bp->b_fspriv = iclog;
|
||||
XFS_BUF_ZEROFLAGS(bp);
|
||||
XFS_BUF_BUSY(bp);
|
||||
XFS_BUF_ASYNC(bp);
|
||||
bp->b_flags |= XBF_SYNCIO;
|
||||
if (log->l_mp->m_flags & XFS_MOUNT_BARRIER)
|
||||
|
@ -178,7 +178,6 @@ xlog_bread_noalign(
|
||||
|
||||
XFS_BUF_SET_ADDR(bp, log->l_logBBstart + blk_no);
|
||||
XFS_BUF_READ(bp);
|
||||
XFS_BUF_BUSY(bp);
|
||||
XFS_BUF_SET_COUNT(bp, BBTOB(nbblks));
|
||||
XFS_BUF_SET_TARGET(bp, log->l_mp->m_logdev_targp);
|
||||
|
||||
@ -266,7 +265,6 @@ xlog_bwrite(
|
||||
|
||||
XFS_BUF_SET_ADDR(bp, log->l_logBBstart + blk_no);
|
||||
XFS_BUF_ZEROFLAGS(bp);
|
||||
XFS_BUF_BUSY(bp);
|
||||
XFS_BUF_HOLD(bp);
|
||||
xfs_buf_lock(bp);
|
||||
XFS_BUF_SET_COUNT(bp, BBTOB(nbblks));
|
||||
|
@ -80,7 +80,6 @@ _xfs_trans_bjoin(
|
||||
{
|
||||
struct xfs_buf_log_item *bip;
|
||||
|
||||
ASSERT(XFS_BUF_ISBUSY(bp));
|
||||
ASSERT(bp->b_transp == NULL);
|
||||
|
||||
/*
|
||||
@ -580,7 +579,6 @@ xfs_trans_bhold(xfs_trans_t *tp,
|
||||
{
|
||||
xfs_buf_log_item_t *bip = bp->b_fspriv;
|
||||
|
||||
ASSERT(XFS_BUF_ISBUSY(bp));
|
||||
ASSERT(bp->b_transp == tp);
|
||||
ASSERT(bip != NULL);
|
||||
ASSERT(!(bip->bli_flags & XFS_BLI_STALE));
|
||||
@ -601,7 +599,6 @@ xfs_trans_bhold_release(xfs_trans_t *tp,
|
||||
{
|
||||
xfs_buf_log_item_t *bip = bp->b_fspriv;
|
||||
|
||||
ASSERT(XFS_BUF_ISBUSY(bp));
|
||||
ASSERT(bp->b_transp == tp);
|
||||
ASSERT(bip != NULL);
|
||||
ASSERT(!(bip->bli_flags & XFS_BLI_STALE));
|
||||
@ -630,7 +627,6 @@ xfs_trans_log_buf(xfs_trans_t *tp,
|
||||
{
|
||||
xfs_buf_log_item_t *bip = bp->b_fspriv;
|
||||
|
||||
ASSERT(XFS_BUF_ISBUSY(bp));
|
||||
ASSERT(bp->b_transp == tp);
|
||||
ASSERT(bip != NULL);
|
||||
ASSERT((first <= last) && (last < XFS_BUF_COUNT(bp)));
|
||||
@ -701,7 +697,6 @@ xfs_trans_binval(
|
||||
{
|
||||
xfs_buf_log_item_t *bip = bp->b_fspriv;
|
||||
|
||||
ASSERT(XFS_BUF_ISBUSY(bp));
|
||||
ASSERT(bp->b_transp == tp);
|
||||
ASSERT(bip != NULL);
|
||||
ASSERT(atomic_read(&bip->bli_refcount) > 0);
|
||||
@ -773,7 +768,6 @@ xfs_trans_inode_buf(
|
||||
{
|
||||
xfs_buf_log_item_t *bip = bp->b_fspriv;
|
||||
|
||||
ASSERT(XFS_BUF_ISBUSY(bp));
|
||||
ASSERT(bp->b_transp == tp);
|
||||
ASSERT(bip != NULL);
|
||||
ASSERT(atomic_read(&bip->bli_refcount) > 0);
|
||||
@ -797,7 +791,6 @@ xfs_trans_stale_inode_buf(
|
||||
{
|
||||
xfs_buf_log_item_t *bip = bp->b_fspriv;
|
||||
|
||||
ASSERT(XFS_BUF_ISBUSY(bp));
|
||||
ASSERT(bp->b_transp == tp);
|
||||
ASSERT(bip != NULL);
|
||||
ASSERT(atomic_read(&bip->bli_refcount) > 0);
|
||||
@ -822,7 +815,6 @@ xfs_trans_inode_alloc_buf(
|
||||
{
|
||||
xfs_buf_log_item_t *bip = bp->b_fspriv;
|
||||
|
||||
ASSERT(XFS_BUF_ISBUSY(bp));
|
||||
ASSERT(bp->b_transp == tp);
|
||||
ASSERT(bip != NULL);
|
||||
ASSERT(atomic_read(&bip->bli_refcount) > 0);
|
||||
@ -850,7 +842,6 @@ xfs_trans_dquot_buf(
|
||||
{
|
||||
xfs_buf_log_item_t *bip = bp->b_fspriv;
|
||||
|
||||
ASSERT(XFS_BUF_ISBUSY(bp));
|
||||
ASSERT(bp->b_transp == tp);
|
||||
ASSERT(bip != NULL);
|
||||
ASSERT(type == XFS_BLF_UDQUOT_BUF ||
|
||||
|
Loading…
Reference in New Issue
Block a user