diff options
author | Tao Ma <tao.ma@oracle.com> | 2009-08-17 23:28:39 -0400 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2009-09-22 23:09:34 -0400 |
commit | 1aa75fea64bc26bda9be9b1b20ae253d7a481877 (patch) | |
tree | 5da0c235f1323b9771e44a18a5452c83c0969547 /fs/ocfs2/alloc.h | |
parent | 1823cb0b9fe5e6d48017ee3f92428f69c0235d87 (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.h')
-rw-r--r-- | fs/ocfs2/alloc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/ocfs2/alloc.h b/fs/ocfs2/alloc.h index 0610ba148ea0..19d5b88a93df 100644 --- a/fs/ocfs2/alloc.h +++ b/fs/ocfs2/alloc.h | |||
@@ -128,6 +128,12 @@ int ocfs2_mark_extent_written(struct inode *inode, | |||
128 | handle_t *handle, u32 cpos, u32 len, u32 phys, | 128 | handle_t *handle, u32 cpos, u32 len, u32 phys, |
129 | struct ocfs2_alloc_context *meta_ac, | 129 | struct ocfs2_alloc_context *meta_ac, |
130 | struct ocfs2_cached_dealloc_ctxt *dealloc); | 130 | struct ocfs2_cached_dealloc_ctxt *dealloc); |
131 | int ocfs2_change_extent_flag(handle_t *handle, | ||
132 | struct ocfs2_extent_tree *et, | ||
133 | u32 cpos, u32 len, u32 phys, | ||
134 | struct ocfs2_alloc_context *meta_ac, | ||
135 | struct ocfs2_cached_dealloc_ctxt *dealloc, | ||
136 | int new_flags, int clear_flags); | ||
131 | int ocfs2_remove_extent(handle_t *handle, struct ocfs2_extent_tree *et, | 137 | int ocfs2_remove_extent(handle_t *handle, struct ocfs2_extent_tree *et, |
132 | u32 cpos, u32 len, | 138 | u32 cpos, u32 len, |
133 | struct ocfs2_alloc_context *meta_ac, | 139 | struct ocfs2_alloc_context *meta_ac, |