diff options
| author | Huan Yang <[email protected]> | 2024-08-26 14:40:48 +0800 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-09-09 16:39:05 -0700 |
| commit | 94deaf69dcd33462c61fa8cabb0883e3085a1046 (patch) | |
| tree | 023e6e80c8ea7ba9b9f6841853be25a461c5f852 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 536ab838a5b37b6ae3f8d53552560b7c51daeb41 (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/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions