]> 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)
commit8f02e1183a965307aaf40e18ac22d73aace05509
treeff158ae7a438e38ee856eb8fd213350a052ffd45
parentce8653d7f7c521bbcc158204fbac221d008e6319
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