summaryrefslogtreecommitdiff
path: root/fs/ocfs2/ocfs2.h
diff options
context:
space:
mode:
authorTao Ma <tao.ma@oracle.com>2009-08-18 11:19:26 +0800
committerJoel Becker <joel.becker@oracle.com>2009-09-22 20:09:26 -0700
commitf2c870e3b12e38da6d9b5b17c4c8ae56a0ed68e4 (patch)
tree23aabcc02bc4437c975626012248a7fad3a307de /fs/ocfs2/ocfs2.h
parent93c97087a646429f4dc0d73298d64674ddd5cde8 (diff)
downloadlwn-f2c870e3b12e38da6d9b5b17c4c8ae56a0ed68e4.tar.gz
lwn-f2c870e3b12e38da6d9b5b17c4c8ae56a0ed68e4.zip
ocfs2: Add ocfs2_read_refcount_block.
Signed-off-by: Tao Ma <tao.ma@oracle.com>
Diffstat (limited to 'fs/ocfs2/ocfs2.h')
-rw-r--r--fs/ocfs2/ocfs2.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ocfs2/ocfs2.h b/fs/ocfs2/ocfs2.h
index d370262b3621..6688d19e4451 100644
--- a/fs/ocfs2/ocfs2.h
+++ b/fs/ocfs2/ocfs2.h
@@ -610,6 +610,9 @@ static inline int ocfs2_uses_extended_slot_map(struct ocfs2_super *osb)
#define OCFS2_IS_VALID_DX_LEAF(ptr) \
(!strcmp((ptr)->dl_signature, OCFS2_DX_LEAF_SIGNATURE))
+#define OCFS2_IS_VALID_REFCOUNT_BLOCK(ptr) \
+ (!strcmp((ptr)->rf_signature, OCFS2_REFCOUNT_BLOCK_SIGNATURE))
+
static inline unsigned long ino_from_blkno(struct super_block *sb,
u64 blkno)
{