aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/ocfs2.h
diff options
context:
space:
mode:
authorTao Ma <tao.ma@oracle.com>2009-08-17 23:28:39 -0400
committerJoel Becker <joel.becker@oracle.com>2009-09-22 23:09:34 -0400
commit1aa75fea64bc26bda9be9b1b20ae253d7a481877 (patch)
tree5da0c235f1323b9771e44a18a5452c83c0969547 /fs/ocfs2/ocfs2.h
parent1823cb0b9fe5e6d48017ee3f92428f69c0235d87 (diff)
ocfs2: Add functions for extents refcounted.
Add function ocfs2_mark_extent_refcounted which can mark an extent refcounted. Signed-off-by: Tao Ma <tao.ma@oracle.com>
Diffstat (limited to 'fs/ocfs2/ocfs2.h')
-rw-r--r--fs/ocfs2/ocfs2.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/ocfs2/ocfs2.h b/fs/ocfs2/ocfs2.h
index bb5357376ef5..eae404602424 100644
--- a/fs/ocfs2/ocfs2.h
+++ b/fs/ocfs2/ocfs2.h
@@ -516,6 +516,13 @@ static inline void ocfs2_add_links_count(struct ocfs2_dinode *di, int n)
516 ocfs2_set_links_count(di, links); 516 ocfs2_set_links_count(di, links);
517} 517}
518 518
519static inline int ocfs2_refcount_tree(struct ocfs2_super *osb)
520{
521 if (osb->s_feature_incompat & OCFS2_FEATURE_INCOMPAT_REFCOUNT_TREE)
522 return 1;
523 return 0;
524}
525
519/* set / clear functions because cluster events can make these happen 526/* set / clear functions because cluster events can make these happen
520 * in parallel so we want the transitions to be atomic. this also 527 * in parallel so we want the transitions to be atomic. this also
521 * means that any future flags osb_flags must be protected by spinlock 528 * means that any future flags osb_flags must be protected by spinlock