aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <[email protected]>2021-02-24 12:01:59 -0800
committerLinus Torvalds <[email protected]>2021-02-24 13:38:27 -0800
commitcbd59c48ae2bcadc4a7599c29cf32fd3f9b78251 (patch)
tree45ac75da0bae30506e8efc8b6362f418c36a4a6d /tools/perf/scripts/python/flamegraph.py
parentff993ba130009b1b8afb06206887e1e1f5b34591 (diff)
mm/filemap: use head pages in generic_file_buffered_read
Add filemap_get_read_batch() which returns the head pages which represent a contiguous array of bytes in the file. It also stops when encountering a page marked as Readahead or !Uptodate (but does return that page) so it can be handled appropriately by filemap_get_pages(). That lets us remove the loop in filemap_get_pages() and check only the last page. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Reviewed-by: Kent Overstreet <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Cc: Miaohe Lin <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions