aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_buf.h
diff options
context:
space:
mode:
authorChandra Seetharaman <sekharan@us.ibm.com>2011-07-22 19:40:27 -0400
committerAlex Elder <aelder@sgi.com>2011-07-25 16:03:22 -0400
commit811e64c7169bb59229971c4aa3b1ed5093f44c84 (patch)
treecf14860be8322a112409095619b6e3ee71b500a7 /fs/xfs/linux-2.6/xfs_buf.h
parent02fe03d909f3a5876d7b4775fdbc83c07c7c3842 (diff)
Replace the macro XFS_BUF_ISPINNED with helper xfs_buf_ispinned
Replace the macro XFS_BUF_ISPINNED with an inline helper function xfs_buf_ispinned, and change all its usages. 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/xfs/linux-2.6/xfs_buf.h')
-rw-r--r--fs/xfs/linux-2.6/xfs_buf.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/xfs/linux-2.6/xfs_buf.h b/fs/xfs/linux-2.6/xfs_buf.h
index c5601e1e0f46..f4e3de65ebe7 100644
--- a/fs/xfs/linux-2.6/xfs_buf.h
+++ b/fs/xfs/linux-2.6/xfs_buf.h
@@ -285,7 +285,10 @@ xfs_buf_set_ref(
285#define XFS_BUF_SET_VTYPE_REF(bp, type, ref) xfs_buf_set_ref(bp, ref) 285#define XFS_BUF_SET_VTYPE_REF(bp, type, ref) xfs_buf_set_ref(bp, ref)
286#define XFS_BUF_SET_VTYPE(bp, type) do { } while (0) 286#define XFS_BUF_SET_VTYPE(bp, type) do { } while (0)
287 287
288#define XFS_BUF_ISPINNED(bp) atomic_read(&((bp)->b_pin_count)) 288static inline int xfs_buf_ispinned(struct xfs_buf *bp)
289{
290 return atomic_read(&bp->b_pin_count);
291}
289 292
290#define XFS_BUF_FINISH_IOWAIT(bp) complete(&bp->b_iowait); 293#define XFS_BUF_FINISH_IOWAIT(bp) complete(&bp->b_iowait);
291 294