From: Christoph Hellwig Date: Tue, 3 Jul 2012 16:20:00 +0000 (-0400) Subject: xfs: handle EOF correctly in xfs_vm_writepage X-Git-Tag: v3.6-rc1~42^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b7a03f03a2f8b1629133e35729eba4727fae3cc;p=pandora-kernel.git xfs: handle EOF correctly in xfs_vm_writepage We need to zero out part of a page which beyond EOF before setting uptodate, otherwise, mapread or write will see non-zero data beyond EOF. Based on the code in fs/buffer.c and the following ext4 commit: ext4: handle EOF correctly in ext4_bio_write_page() And yes, I wish we had a good test case for it. Signed-off-by: Christoph Hellwig Reviewed-by: Mark Tinguely Signed-off-by: Ben Myers --- Reading git-diff-tree failed