aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorKemeng Shi <[email protected]>2023-08-11 19:59:45 +0800
committerAndrew Morton <[email protected]>2023-08-21 13:37:51 -0700
commitb5ffd2973365298c4d829802653133038837a6f9 (patch)
treef4ea2e0caa17da19faa35ca7a87b3d131d65d02b /tools/perf/scripts/python/net_dropmonitor.py
parenta04d12c2481fbf2752b5686d8a8049dd59e61e37 (diff)
mm/page_alloc: use get_pfnblock_migratetype to avoid extra page_to_pfn
We have get_pageblock_migratetype and get_pfnblock_migratetype to get migratetype of page. get_pfnblock_migratetype accepts both page and pfn from caller while get_pageblock_migratetype only accept page and get pfn with page_to_pfn from page. In case we already record pfn of page, we can simply call get_pfnblock_migratetype to avoid a page_to_pfn. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Kemeng Shi <[email protected]> Acked-by: Mel Gorman <[email protected]> Cc: Baolin Wang <[email protected]> Cc: David Hildenbrand <[email protected]> Cc: Matthew Wilcox (Oracle) <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions