aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2016-06-20 23:52:47 +0000
committerDave Chinner <[email protected]>2016-06-20 23:52:47 +0000
commitf0c6bcba74ac51cb77aadb33ad35cb2dc1ad1506 (patch)
treec4674d611e81f13021becc33e08ebd2a411d47c4 /tools/perf/scripts/python
parentxfs: make xfs_bmbt_to_iomap available outside of xfs_pnfs.c (diff)
downloadkernel-f0c6bcba74ac51cb77aadb33ad35cb2dc1ad1506.tar.gz
kernel-f0c6bcba74ac51cb77aadb33ad35cb2dc1ad1506.zip
xfs: reorder zeroing and flushing sequence in truncate
Currently zeroing out blocks and waiting for writeout is a bit of a mess in truncate. This patch gives it a clear order in preparation for the iomap path: (1) we first wait for any direct I/O to complete to prevent any races for it (2) we then perform the actual zeroing, and only use the truncate_page helpers for truncating down. The truncate up case already is handled by the separate call to xfs_zero_eof. (3) only then we write back dirty data, as zeroing block may cause dirty pages when using either xfs_zero_eof or the new iomap infrastructure. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Bob Peterson <[email protected]> Signed-off-by: Dave Chinner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions