diff options
author | Mark Fasheh <mark.fasheh@oracle.com> | 2007-03-09 19:43:28 -0500 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2007-07-10 20:32:04 -0400 |
commit | 2ae99a60374f360ba07037ebbf33d19b89ac43a6 (patch) | |
tree | ce83db2022a28deb8c402fca7c08cf924ee8e608 /fs/ocfs2/alloc.h | |
parent | b27b7cbcf12a1bfff1ed68a73ddd7d11edc20daf (diff) |
ocfs2: Support creation of unwritten extents
This can now be trivially supported with re-use of our existing extend code.
ocfs2_allocate_unwritten_extents() takes a start offset and a byte length
and iterates over the inode, adding extents (marked as unwritten) until len
is reached. Existing extents are skipped over.
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/alloc.h')
-rw-r--r-- | fs/ocfs2/alloc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ocfs2/alloc.h b/fs/ocfs2/alloc.h index d3acf45225c..e3284f3eb6b 100644 --- a/fs/ocfs2/alloc.h +++ b/fs/ocfs2/alloc.h | |||
@@ -34,6 +34,7 @@ int ocfs2_insert_extent(struct ocfs2_super *osb, | |||
34 | u32 cpos, | 34 | u32 cpos, |
35 | u64 start_blk, | 35 | u64 start_blk, |
36 | u32 new_clusters, | 36 | u32 new_clusters, |
37 | u8 flags, | ||
37 | struct ocfs2_alloc_context *meta_ac); | 38 | struct ocfs2_alloc_context *meta_ac); |
38 | struct ocfs2_cached_dealloc_ctxt; | 39 | struct ocfs2_cached_dealloc_ctxt; |
39 | int ocfs2_mark_extent_written(struct inode *inode, struct buffer_head *di_bh, | 40 | int ocfs2_mark_extent_written(struct inode *inode, struct buffer_head *di_bh, |