diff options
author | Mark Fasheh <mark.fasheh@oracle.com> | 2007-06-18 11:22:56 -0700 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2007-07-10 17:32:03 -0700 |
commit | b27b7cbcf12a1bfff1ed68a73ddd7d11edc20daf (patch) | |
tree | a25a8ca272e7f0ef01987db3b3795a49e0ccb51f /fs/ocfs2/file.h | |
parent | 0d172baa5586071ae0ae0c07356a378fdbedecdb (diff) | |
download | linux-b27b7cbcf12a1bfff1ed68a73ddd7d11edc20daf.tar.gz linux-b27b7cbcf12a1bfff1ed68a73ddd7d11edc20daf.tar.bz2 linux-b27b7cbcf12a1bfff1ed68a73ddd7d11edc20daf.zip |
ocfs2: support writing of unwritten extents
Update the write code to detect when the user is asking to write to an
unwritten extent. Like writing to a hole, we must zero the region between
the write and the cluster boundaries. Most of the existing cluster zeroing
logic can be re-used with some additional checks for the unwritten flag on
extent records.
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/file.h')
-rw-r--r-- | fs/ocfs2/file.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/file.h b/fs/ocfs2/file.h index a4dd1fa1822b..54df3c4bd2fd 100644 --- a/fs/ocfs2/file.h +++ b/fs/ocfs2/file.h @@ -47,7 +47,7 @@ int ocfs2_do_extend_allocation(struct ocfs2_super *osb, struct ocfs2_alloc_context *meta_ac, enum ocfs2_alloc_restarted *reason); int ocfs2_lock_allocators(struct inode *inode, struct ocfs2_dinode *di, - u32 clusters_to_add, + u32 clusters_to_add, u32 extents_to_split, struct ocfs2_alloc_context **data_ac, struct ocfs2_alloc_context **meta_ac); int ocfs2_setattr(struct dentry *dentry, struct iattr *attr); |