]> err.no Git - linux-2.6/commit
ocfs2: zero tail of sparse files on truncate
authorMark Fasheh <mark.fasheh@oracle.com>
Fri, 16 Feb 2007 19:46:50 +0000 (11:46 -0800)
committerMark Fasheh <mark.fasheh@oracle.com>
Thu, 26 Apr 2007 22:02:20 +0000 (15:02 -0700)
commit60b11392f1a09433740bda3048202213daa27736
treea8687fcb0ce62b130b732d663b54a984564d28b2
parent25baf2da1473d9dcde1a4c7b0ab26e7d67d9bf62
ocfs2: zero tail of sparse files on truncate

Since we don't zero on extend anymore, truncate needs to be fixed up to zero
the part of a file between i_size and and end of it's cluster. Otherwise a
subsequent extend could expose bad data.

This introduced a new helper, which can be used in ocfs2_write().

Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/alloc.c
fs/ocfs2/alloc.h
fs/ocfs2/aops.c
fs/ocfs2/aops.h
fs/ocfs2/file.c
fs/ocfs2/inode.c
fs/ocfs2/ocfs2.h