diff options
author | Mark Fasheh <mfasheh@suse.com> | 2008-11-12 18:16:38 -0500 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2009-01-05 11:34:19 -0500 |
commit | fecc01126d7a244b7e9b563c80663ffdca35343b (patch) | |
tree | dbc9144a0f4b6e6997928b2fa2ddeb483f8fd2d7 /fs/ocfs2/alloc.h | |
parent | 85db90e77806d48a19fda77dabe8897d369a1710 (diff) |
ocfs2: turn __ocfs2_remove_inode_range() into ocfs2_remove_btree_range()
This patch genericizes the high level handling of extent removal.
ocfs2_remove_btree_range() is nearly identical to
__ocfs2_remove_inode_range(), except that extent tree operations have been
used where necessary. We update ocfs2_remove_inode_range() to use the
generic helper. Now extent tree based structures have an easy way to
truncate ranges.
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Acked-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/alloc.h')
-rw-r--r-- | fs/ocfs2/alloc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/ocfs2/alloc.h b/fs/ocfs2/alloc.h index 3eb735eedae6..0fbf8fc55a49 100644 --- a/fs/ocfs2/alloc.h +++ b/fs/ocfs2/alloc.h | |||
@@ -110,6 +110,11 @@ int ocfs2_remove_extent(struct inode *inode, | |||
110 | u32 cpos, u32 len, handle_t *handle, | 110 | u32 cpos, u32 len, handle_t *handle, |
111 | struct ocfs2_alloc_context *meta_ac, | 111 | struct ocfs2_alloc_context *meta_ac, |
112 | struct ocfs2_cached_dealloc_ctxt *dealloc); | 112 | struct ocfs2_cached_dealloc_ctxt *dealloc); |
113 | int ocfs2_remove_btree_range(struct inode *inode, | ||
114 | struct ocfs2_extent_tree *et, | ||
115 | u32 cpos, u32 phys_cpos, u32 len, | ||
116 | struct ocfs2_cached_dealloc_ctxt *dealloc); | ||
117 | |||
113 | int ocfs2_num_free_extents(struct ocfs2_super *osb, | 118 | int ocfs2_num_free_extents(struct ocfs2_super *osb, |
114 | struct inode *inode, | 119 | struct inode *inode, |
115 | struct ocfs2_extent_tree *et); | 120 | struct ocfs2_extent_tree *et); |