aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorHuan Yang <[email protected]>2024-08-26 14:40:48 +0800
committerAndrew Morton <[email protected]>2024-09-09 16:39:05 -0700
commit94deaf69dcd33462c61fa8cabb0883e3085a1046 (patch)
tree023e6e80c8ea7ba9b9f6841853be25a461c5f852 /tools/perf/scripts/python/bin
parent536ab838a5b37b6ae3f8d53552560b7c51daeb41 (diff)
mm: page_alloc: simpify page del and expand
When page del from buddy and need expand, it will account free_pages in zone's migratetype. The current way is to subtract the page number of the current order when deleting, and then add it back when expanding. This is unnecessary, as when migrating the same type, we can directly record the difference between the high-order pages and the expand added, and then subtract it directly. This patch merge that, only when del and expand done, then account free_pages. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Huan Yang <[email protected]> Reviewed-by: Vlastimil Babka <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions