diff options
author | Dave Chinner <dchinner@redhat.com> | 2014-04-14 10:15:11 +0200 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2014-04-14 10:15:11 +0200 |
commit | 897b73b6a2ee5d3c06648b601beb1724f7fbd678 (patch) | |
tree | ff158ae7a438e38ee856eb8fd213350a052ffd45 /fs/xfs/xfs_trace.h | |
parent | xfs: xfs_vm_write_end truncates too much on failure (diff) | |
download | linux-897b73b6a2ee5d3c06648b601beb1724f7fbd678.tar.xz linux-897b73b6a2ee5d3c06648b601beb1724f7fbd678.zip |
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>
Diffstat (limited to 'fs/xfs/xfs_trace.h')
-rw-r--r-- | fs/xfs/xfs_trace.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_trace.h b/fs/xfs/xfs_trace.h index a4ae41c179a8..65d8c793a25c 100644 --- a/fs/xfs/xfs_trace.h +++ b/fs/xfs/xfs_trace.h @@ -603,6 +603,7 @@ DEFINE_INODE_EVENT(xfs_readlink); DEFINE_INODE_EVENT(xfs_inactive_symlink); DEFINE_INODE_EVENT(xfs_alloc_file_space); DEFINE_INODE_EVENT(xfs_free_file_space); +DEFINE_INODE_EVENT(xfs_zero_file_space); DEFINE_INODE_EVENT(xfs_collapse_file_space); DEFINE_INODE_EVENT(xfs_readdir); #ifdef CONFIG_XFS_POSIX_ACL |