]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: xfs_vm_write_end truncates too much on failure
authorDave Chinner <dchinner@redhat.com>
Mon, 14 Apr 2014 08:14:11 +0000 (18:14 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 14 Apr 2014 08:14:11 +0000 (18:14 +1000)
commit932d8fe0ac788019b940525f6ce26512b4337630
tree36d8fdb1bf1f6214148ab791353427c3bf0847a1
parent8a5f02ddf34e1212f574e115754b55b7534586a4
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 <dchinner@redhat.com>
Tested-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_aops.c