xfs: Remove macro XFS_BUF_HOLD
authorChandra Seetharaman <sekharan@us.ibm.com>
Fri, 22 Jul 2011 23:40:04 +0000 (23:40 +0000)
committerAlex Elder <aelder@sgi.com>
Mon, 25 Jul 2011 20:03:06 +0000 (15:03 -0500)
Remove the definition and usage of the macro XFS_BUF_HOLD

Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/linux-2.6/xfs_buf.h
fs/xfs/xfs_buf_item.c
fs/xfs/xfs_log_recover.c
fs/xfs/xfs_mount.c

index 05e744f9fe7155cc2f7a8fcd8157e30b7cc03175..6691a023670874f72909d56a6fa1a0ec1b9f5170 100644 (file)
@@ -258,7 +258,6 @@ void xfs_buf_stale(struct xfs_buf *bp);
 #define XFS_BUF_UNASYNC(bp)    ((bp)->b_flags &= ~XBF_ASYNC)
 #define XFS_BUF_ISASYNC(bp)    ((bp)->b_flags & XBF_ASYNC)
 
-#define XFS_BUF_HOLD(bp)       xfs_buf_hold(bp)
 #define XFS_BUF_READ(bp)       ((bp)->b_flags |= XBF_READ)
 #define XFS_BUF_UNREAD(bp)     ((bp)->b_flags &= ~XBF_READ)
 #define XFS_BUF_ISREAD(bp)     ((bp)->b_flags & XBF_READ)
index 9e9b4a70360a621071c87f2cf0c5a7c0cb200341..a6dd497510a3b96485b3ffb172ae1551232decf9 100644 (file)
@@ -484,7 +484,7 @@ xfs_buf_item_trylock(
                return XFS_ITEM_LOCKED;
 
        /* take a reference to the buffer.  */
-       XFS_BUF_HOLD(bp);
+       xfs_buf_hold(bp);
 
        ASSERT(!(bip->bli_flags & XFS_BLI_STALE));
        trace_xfs_buf_item_trylock(bip);
index 4c8a892c0951ec898405a9e07891c88018cae9de..536eb0dd94d67fd20e8bbc59aadbf60e1b410569 100644 (file)
@@ -265,7 +265,7 @@ xlog_bwrite(
 
        XFS_BUF_SET_ADDR(bp, log->l_logBBstart + blk_no);
        XFS_BUF_ZEROFLAGS(bp);
-       XFS_BUF_HOLD(bp);
+       xfs_buf_hold(bp);
        xfs_buf_lock(bp);
        XFS_BUF_SET_COUNT(bp, BBTOB(nbblks));
        XFS_BUF_SET_TARGET(bp, log->l_mp->m_logdev_targp);
index 7f25245da28900280c4d56cb3ce7e909c3757d4c..b00c808d7d3e97b2123d6993b01e566f34e73f61 100644 (file)
@@ -1938,7 +1938,7 @@ xfs_getsb(
                xfs_buf_lock(bp);
        }
 
-       XFS_BUF_HOLD(bp);
+       xfs_buf_hold(bp);
        ASSERT(XFS_BUF_ISDONE(bp));
        return bp;
 }