From: Dave Chinner Date: Mon, 14 Apr 2014 08:14:11 +0000 (+1000) Subject: xfs: xfs_vm_write_end truncates too much on failure X-Git-Tag: omap-for-v3.16/pm-signed~90^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aad3f3755e7f043789b772856d1a2935f2b41a4b;p=pandora-kernel.git xfs: xfs_vm_write_end truncates too much on failure Similar to the write_begin problem, xfs-vm_write_end will truncate back to the old EOF, potentially removing page cache from over the top of delalloc blocks with valid data in them. Fix this by truncating back to just the start of the failed write. Signed-off-by: Dave Chinner Tested-by: Brian Foster Reviewed-by: Christoph Hellwig Signed-off-by: Dave Chinner --- Reading git-diff-tree failed