aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/extent_map.h
diff options
context:
space:
mode:
authorTao Ma <tao.ma@oracle.com>2009-08-11 02:33:14 -0400
committerJoel Becker <joel.becker@oracle.com>2009-09-22 23:09:33 -0400
commite73a819db9c2d6c4065b7cab7374709b6939e8f1 (patch)
tree40968bc5b37d3b55e382267683c9612d4697f036 /fs/ocfs2/extent_map.h
parente2e9f6082b5ff099978774d5c0148e062344c2f9 (diff)
ocfs2: Add support for incrementing refcount in the tree.
Given a physical cpos and length, increment the refcount in the tree. If the extent has not been seen before, a refcount record is created for it. Refcount records may be merged or split by this operation. Signed-off-by: Tao Ma <tao.ma@oracle.com>
Diffstat (limited to 'fs/ocfs2/extent_map.h')
-rw-r--r--fs/ocfs2/extent_map.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/ocfs2/extent_map.h b/fs/ocfs2/extent_map.h
index b7dd9731b462..9942f47efda7 100644
--- a/fs/ocfs2/extent_map.h
+++ b/fs/ocfs2/extent_map.h
@@ -61,6 +61,11 @@ int ocfs2_read_virt_blocks(struct inode *inode, u64 v_block, int nr,
61 struct buffer_head *bhs[], int flags, 61 struct buffer_head *bhs[], int flags,
62 int (*validate)(struct super_block *sb, 62 int (*validate)(struct super_block *sb,
63 struct buffer_head *bh)); 63 struct buffer_head *bh));
64int ocfs2_figure_hole_clusters(struct ocfs2_caching_info *ci,
65 struct ocfs2_extent_list *el,
66 struct buffer_head *eb_bh,
67 u32 v_cluster,
68 u32 *num_clusters);
64static inline int ocfs2_read_virt_block(struct inode *inode, u64 v_block, 69static inline int ocfs2_read_virt_block(struct inode *inode, u64 v_block,
65 struct buffer_head **bh, 70 struct buffer_head **bh,
66 int (*validate)(struct super_block *sb, 71 int (*validate)(struct super_block *sb,