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)
commit897b73b6a2ee5d3c06648b601beb1724f7fbd678
treeff158ae7a438e38ee856eb8fd213350a052ffd45
parentaad3f3755e7f043789b772856d1a2935f2b41a4b
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