diff options
author | Chandra Seetharaman <sekharan@us.ibm.com> | 2011-07-22 23:40:27 +0000 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2011-07-25 15:03:22 -0500 |
commit | 811e64c7169bb59229971c4aa3b1ed5093f44c84 (patch) | |
tree | cf14860be8322a112409095619b6e3ee71b500a7 /fs/xfs/linux-2.6/xfs_buf.h | |
parent | 02fe03d909f3a5876d7b4775fdbc83c07c7c3842 (diff) | |
download | op-kernel-dev-811e64c7169bb59229971c4aa3b1ed5093f44c84.zip op-kernel-dev-811e64c7169bb59229971c4aa3b1ed5093f44c84.tar.gz |
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.h | 5 |
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 c5601e1..f4e3de6 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( #define XFS_BUF_SET_VTYPE_REF(bp, type, ref) xfs_buf_set_ref(bp, ref) #define XFS_BUF_SET_VTYPE(bp, type) do { } while (0) -#define XFS_BUF_ISPINNED(bp) atomic_read(&((bp)->b_pin_count)) +static inline int xfs_buf_ispinned(struct xfs_buf *bp) +{ + return atomic_read(&bp->b_pin_count); +} #define XFS_BUF_FINISH_IOWAIT(bp) complete(&bp->b_iowait); |