diff options
author | Tao Ma <tao.ma@oracle.com> | 2009-08-18 05:28:39 +0200 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2009-09-23 05:09:34 +0200 |
commit | 1aa75fea64bc26bda9be9b1b20ae253d7a481877 (patch) | |
tree | 5da0c235f1323b9771e44a18a5452c83c0969547 /fs/ocfs2/ocfs2.h | |
parent | ocfs2: Add support of decrementing refcount for delete. (diff) | |
download | linux-1aa75fea64bc26bda9be9b1b20ae253d7a481877.tar.xz 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 |