aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <[email protected]>2023-06-28 18:55:48 +0000
committerAndrew Morton <[email protected]>2023-07-08 16:29:30 +0000
commit8344a3d44be3d18671e18c4ba23bb03dd21e14ad (patch)
treed7e0f804bcf56763da3324a659ccfde50bccc4b1 /tools/perf/scripts/python/libxed.py
parentmm: call arch_swap_restore() from do_swap_page() (diff)
downloadkernel-8344a3d44be3d18671e18c4ba23bb03dd21e14ad.tar.gz
kernel-8344a3d44be3d18671e18c4ba23bb03dd21e14ad.zip
writeback: account the number of pages written back
nr_to_write is a count of pages, so we need to decrease it by the number of pages in the folio we just wrote, not by 1. Most callers specify either LONG_MAX or 1, so are unaffected, but writeback_sb_inodes() might end up writing 512x as many pages as it asked for. Dave added: : XFS is the only filesystem this would affect, right? AFAIA, nothing : else enables large folios and uses writeback through : write_cache_pages() at this point... : : In which case, I'd be surprised if much difference, if any, gets : noticed by anyone. Link: https://lkml.kernel.org/r/[email protected] Fixes: 793917d997df ("mm/readahead: Add large folio readahead") Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Cc: Jan Kara <[email protected]> Cc: Dave Chinner <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions