From: Mark Fasheh Date: Fri, 16 Feb 2007 19:46:50 +0000 (-0800) Subject: ocfs2: zero tail of sparse files on truncate X-Git-Tag: v2.6.22-rc1~1124^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60b11392f1a09433740bda3048202213daa27736;p=pandora-kernel.git 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 --- Reading git-diff-tree failed