diff options
author | Tao Ma <tao.ma@oracle.com> | 2009-08-18 11:28:39 +0800 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2009-09-22 20:09:34 -0700 |
commit | 1aa75fea64bc26bda9be9b1b20ae253d7a481877 (patch) | |
tree | 5da0c235f1323b9771e44a18a5452c83c0969547 /fs/ocfs2/ocfs2.h | |
parent | 1823cb0b9fe5e6d48017ee3f92428f69c0235d87 (diff) | |
download | blackbird-op-linux-1aa75fea64bc26bda9be9b1b20ae253d7a481877.tar.gz blackbird-op-linux-1aa75fea64bc26bda9be9b1b20ae253d7a481877.zip |
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.h | 7 |
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) ocfs2_set_links_count(di, links); } +static inline int ocfs2_refcount_tree(struct ocfs2_super *osb) +{ + if (osb->s_feature_incompat & OCFS2_FEATURE_INCOMPAT_REFCOUNT_TREE) + return 1; + return 0; +} + /* set / clear functions because cluster events can make these happen * in parallel so we want the transitions to be atomic. this also * means that any future flags osb_flags must be protected by spinlock |