aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/alloc.c
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/alloc.c
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/alloc.c')
-rw-r--r--fs/ocfs2/alloc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c
index 9dd68cd7b0ad..96f8ca6b3aba 100644
--- a/fs/ocfs2/alloc.c
+++ b/fs/ocfs2/alloc.c
@@ -5169,12 +5169,12 @@ out:
5169 * 5169 *
5170 * The caller is responsible for passing down meta_ac if we'll need it. 5170 * The caller is responsible for passing down meta_ac if we'll need it.
5171 */ 5171 */
5172static int ocfs2_change_extent_flag(handle_t *handle, 5172int ocfs2_change_extent_flag(handle_t *handle,
5173 struct ocfs2_extent_tree *et, 5173 struct ocfs2_extent_tree *et,
5174 u32 cpos, u32 len, u32 phys, 5174 u32 cpos, u32 len, u32 phys,
5175 struct ocfs2_alloc_context *meta_ac, 5175 struct ocfs2_alloc_context *meta_ac,
5176 struct ocfs2_cached_dealloc_ctxt *dealloc, 5176 struct ocfs2_cached_dealloc_ctxt *dealloc,
5177 int new_flags, int clear_flags) 5177 int new_flags, int clear_flags)
5178{ 5178{
5179 int ret, index; 5179 int ret, index;
5180 struct super_block *sb = ocfs2_metadata_cache_get_super(et->et_ci); 5180 struct super_block *sb = ocfs2_metadata_cache_get_super(et->et_ci);