diff options
author | Chandra Seetharaman <sekharan@us.ibm.com> | 2011-07-22 19:40:04 -0400 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2011-07-25 16:03:06 -0400 |
commit | 72790aa1192f46dedfc827c170365fd554981d15 (patch) | |
tree | 1e88a1c4ad93d0536f59ea58a9fbba4bb015378c /fs | |
parent | b75e40a4193ca027af7327ef30c31d45aa0a0e40 (diff) |
xfs: Remove macro XFS_BUF_HOLD
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_buf.h | 1 | ||||
-rw-r--r-- | fs/xfs/xfs_buf_item.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_log_recover.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_mount.c | 2 |
4 files changed, 3 insertions, 4 deletions
diff --git a/fs/xfs/linux-2.6/xfs_buf.h b/fs/xfs/linux-2.6/xfs_buf.h index 05e744f9fe71..6691a0236708 100644 --- a/fs/xfs/linux-2.6/xfs_buf.h +++ b/fs/xfs/linux-2.6/xfs_buf.h | |||
@@ -258,7 +258,6 @@ void xfs_buf_stale(struct xfs_buf *bp); | |||
258 | #define XFS_BUF_UNASYNC(bp) ((bp)->b_flags &= ~XBF_ASYNC) | 258 | #define XFS_BUF_UNASYNC(bp) ((bp)->b_flags &= ~XBF_ASYNC) |
259 | #define XFS_BUF_ISASYNC(bp) ((bp)->b_flags & XBF_ASYNC) | 259 | #define XFS_BUF_ISASYNC(bp) ((bp)->b_flags & XBF_ASYNC) |
260 | 260 | ||
261 | #define XFS_BUF_HOLD(bp) xfs_buf_hold(bp) | ||
262 | #define XFS_BUF_READ(bp) ((bp)->b_flags |= XBF_READ) | 261 | #define XFS_BUF_READ(bp) ((bp)->b_flags |= XBF_READ) |
263 | #define XFS_BUF_UNREAD(bp) ((bp)->b_flags &= ~XBF_READ) | 262 | #define XFS_BUF_UNREAD(bp) ((bp)->b_flags &= ~XBF_READ) |
264 | #define XFS_BUF_ISREAD(bp) ((bp)->b_flags & XBF_READ) | 263 | #define XFS_BUF_ISREAD(bp) ((bp)->b_flags & XBF_READ) |
diff --git a/fs/xfs/xfs_buf_item.c b/fs/xfs/xfs_buf_item.c index 9e9b4a70360a..a6dd497510a3 100644 --- a/fs/xfs/xfs_buf_item.c +++ b/fs/xfs/xfs_buf_item.c | |||
@@ -484,7 +484,7 @@ xfs_buf_item_trylock( | |||
484 | return XFS_ITEM_LOCKED; | 484 | return XFS_ITEM_LOCKED; |
485 | 485 | ||
486 | /* take a reference to the buffer. */ | 486 | /* take a reference to the buffer. */ |
487 | XFS_BUF_HOLD(bp); | 487 | xfs_buf_hold(bp); |
488 | 488 | ||
489 | ASSERT(!(bip->bli_flags & XFS_BLI_STALE)); | 489 | ASSERT(!(bip->bli_flags & XFS_BLI_STALE)); |
490 | trace_xfs_buf_item_trylock(bip); | 490 | trace_xfs_buf_item_trylock(bip); |
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c index 4c8a892c0951..536eb0dd94d6 100644 --- a/fs/xfs/xfs_log_recover.c +++ b/fs/xfs/xfs_log_recover.c | |||
@@ -265,7 +265,7 @@ xlog_bwrite( | |||
265 | 265 | ||
266 | XFS_BUF_SET_ADDR(bp, log->l_logBBstart + blk_no); | 266 | XFS_BUF_SET_ADDR(bp, log->l_logBBstart + blk_no); |
267 | XFS_BUF_ZEROFLAGS(bp); | 267 | XFS_BUF_ZEROFLAGS(bp); |
268 | XFS_BUF_HOLD(bp); | 268 | xfs_buf_hold(bp); |
269 | xfs_buf_lock(bp); | 269 | xfs_buf_lock(bp); |
270 | XFS_BUF_SET_COUNT(bp, BBTOB(nbblks)); | 270 | XFS_BUF_SET_COUNT(bp, BBTOB(nbblks)); |
271 | XFS_BUF_SET_TARGET(bp, log->l_mp->m_logdev_targp); | 271 | XFS_BUF_SET_TARGET(bp, log->l_mp->m_logdev_targp); |
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c index 7f25245da289..b00c808d7d3e 100644 --- a/fs/xfs/xfs_mount.c +++ b/fs/xfs/xfs_mount.c | |||
@@ -1938,7 +1938,7 @@ xfs_getsb( | |||
1938 | xfs_buf_lock(bp); | 1938 | xfs_buf_lock(bp); |
1939 | } | 1939 | } |
1940 | 1940 | ||
1941 | XFS_BUF_HOLD(bp); | 1941 | xfs_buf_hold(bp); |
1942 | ASSERT(XFS_BUF_ISDONE(bp)); | 1942 | ASSERT(XFS_BUF_ISDONE(bp)); |
1943 | return bp; | 1943 | return bp; |
1944 | } | 1944 | } |