]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: zeroing space needs to punch delalloc blocks
authorDave Chinner <dchinner@redhat.com>
Mon, 14 Apr 2014 08:15:11 +0000 (18:15 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 14 Apr 2014 08:15:11 +0000 (18:15 +1000)
commitdc1cbcfbf35f23fce0db12136a9212a5aa67e46e
treeff158ae7a438e38ee856eb8fd213350a052ffd45
parent932d8fe0ac788019b940525f6ce26512b4337630
xfs: zeroing space needs to punch delalloc blocks

When we are zeroing space andit is covered by a delalloc range, we
need to punch the delalloc range out before we truncate the page
cache. Failing to do so leaves and inconsistency between the page
cache and the extent tree, which we later trip over when doing
direct IO over the same range.

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_bmap_util.c
fs/xfs/xfs_trace.h