diff options
author | Dave Chinner <dchinner@redhat.com> | 2014-04-14 18:15:11 +1000 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2014-04-14 18:15:11 +1000 |
commit | 897b73b6a2ee5d3c06648b601beb1724f7fbd678 (patch) | |
tree | ff158ae7a438e38ee856eb8fd213350a052ffd45 /fs/xfs/xfs_trace.h | |
parent | aad3f3755e7f043789b772856d1a2935f2b41a4b (diff) | |
download | op-kernel-dev-897b73b6a2ee5d3c06648b601beb1724f7fbd678.zip op-kernel-dev-897b73b6a2ee5d3c06648b601beb1724f7fbd678.tar.gz |
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 a4ae41c..65d8c79 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 |