diff options
author | Mark Fasheh <mark.fasheh@oracle.com> | 2007-07-06 17:41:18 -0400 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2007-07-10 20:32:07 -0400 |
commit | 35edec1d52c075975991471d624b33b9336226f2 (patch) | |
tree | 4fc59b9d60826b8eb44bc5c1e558a15bea171193 /fs/ocfs2/alloc.h | |
parent | d0c7d7082ee1ec4f95ee57bf86ed39d1a27c4037 (diff) |
ocfs2: update truncate handling of partial clusters
The partial cluster zeroing code used during truncate usually assumes that
the rightmost byte in the range to be zeroed lies on a cluster boundary.
This makes sense for truncate, but punching holes might require zeroing on
non-aligned rightmost boundaries.
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/alloc.h')
-rw-r--r-- | fs/ocfs2/alloc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ocfs2/alloc.h b/fs/ocfs2/alloc.h index e3284f3eb6b..752ef860873 100644 --- a/fs/ocfs2/alloc.h +++ b/fs/ocfs2/alloc.h | |||
@@ -95,8 +95,8 @@ struct ocfs2_truncate_context { | |||
95 | struct buffer_head *tc_last_eb_bh; | 95 | struct buffer_head *tc_last_eb_bh; |
96 | }; | 96 | }; |
97 | 97 | ||
98 | int ocfs2_zero_tail_for_truncate(struct inode *inode, handle_t *handle, | 98 | int ocfs2_zero_range_for_truncate(struct inode *inode, handle_t *handle, |
99 | u64 new_i_size); | 99 | u64 range_start, u64 range_end); |
100 | int ocfs2_prepare_truncate(struct ocfs2_super *osb, | 100 | int ocfs2_prepare_truncate(struct ocfs2_super *osb, |
101 | struct inode *inode, | 101 | struct inode *inode, |
102 | struct buffer_head *fe_bh, | 102 | struct buffer_head *fe_bh, |