From: David Chinner Date: Sat, 10 Feb 2007 07:36:35 +0000 (+1100) Subject: [XFS] Fix sub-block zeroing for buffered writes into unwritten extents. X-Git-Tag: v2.6.21-rc1~274^2~227^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=549054afadae44889c0b40d4c3bfb0207b98d5a0;p=pandora-kernel.git [XFS] Fix sub-block zeroing for buffered writes into unwritten extents. When writing less than a filesystem block of data into an unwritten extent via buffered I/O, __xfs_get_blocks fails to set the buffer new flag. As a result, the generic code will not zero either edge of the block resulting in garbage being written to disk either side of the real data. Set the buffer new state on bufferd writes to unwritten extents to ensure that zeroing occurs. SGI-PV: 960328 SGI-Modid: xfs-linux-melb:xfs-kern:28000a Signed-off-by: David Chinner Signed-off-by: Lachlan McIlroy Signed-off-by: Tim Shimmin --- Reading git-diff-tree failed