summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorChris Mason <mason@kernel.org>2026-11-09 18:51:13 -0500
committerCarlos Maiolino <cem@kernel.org>2026-11-10 11:22:56 +0100
commitd467837a485c3b811b94f4005825a05f1535adb3 (patch)
tree8856e49d30b181ad6cc4e7ecf38aa1598325111f /tools/perf/scripts/python/bin/stackcollapse-report
parent8190880c904fd8ddb943d808e04b12174ce660f8 (diff)
xfs: flush the shifted range before changing the file
If writeback of the range to be shifted fails, collapse range on XFS can fail with its hole already punched, and insert range with the file already grown. Both calls change the file first: collapse range punches its hole, and insert range grows i_size. Only then does xfs_prepare_shift() flush the range from the offset to EOF, and that flush fails if the writeback fails. The fix used here is to flush and invalidate that range before the file is changed. Signed-off-by: Chris Mason <mason@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions