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/aops.c | |
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/aops.c')
-rw-r--r-- | fs/ocfs2/aops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c index 8af923316d22..ec8b606b30e1 100644 --- a/fs/ocfs2/aops.c +++ b/fs/ocfs2/aops.c | |||
@@ -1136,7 +1136,7 @@ static int ocfs2_write_cluster(struct address_space *mapping, | |||
1136 | */ | 1136 | */ |
1137 | tmp_pos = cpos; | 1137 | tmp_pos = cpos; |
1138 | ret = ocfs2_do_extend_allocation(OCFS2_SB(inode->i_sb), inode, | 1138 | ret = ocfs2_do_extend_allocation(OCFS2_SB(inode->i_sb), inode, |
1139 | &tmp_pos, 1, wc->w_di_bh, | 1139 | &tmp_pos, 1, 0, wc->w_di_bh, |
1140 | wc->w_handle, data_ac, | 1140 | wc->w_handle, data_ac, |
1141 | meta_ac, NULL); | 1141 | meta_ac, NULL); |
1142 | /* | 1142 | /* |