]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ocfs2: update truncate handling of partial clusters
authorMark Fasheh <mark.fasheh@oracle.com>
Fri, 6 Jul 2007 21:41:18 +0000 (14:41 -0700)
committerMark Fasheh <mark.fasheh@oracle.com>
Wed, 11 Jul 2007 00:32:07 +0000 (17:32 -0700)
commit35edec1d52c075975991471d624b33b9336226f2
tree4fc59b9d60826b8eb44bc5c1e558a15bea171193
parentd0c7d7082ee1ec4f95ee57bf86ed39d1a27c4037
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>
fs/ocfs2/alloc.c
fs/ocfs2/alloc.h
fs/ocfs2/file.c