diff options
author | Liu Shixin <[email protected]> | 2021-06-28 19:42:33 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2021-06-29 10:53:55 -0700 |
commit | f7ec104458e00d27a190348ac3a513f3df3699a4 (patch) | |
tree | 94f593346bf6f7b48f46f5405db8796028845f4c /tools/perf/scripts/python/export-to-sqlite.py | |
parent | e47aa90568de326625b19d7bc872f8d70b0820b0 (diff) |
mm/page_alloc: fix counting of managed_pages
commit f63661566fad ("mm/page_alloc.c: clear out zone->lowmem_reserve[] if
the zone is empty") clears out zone->lowmem_reserve[] if zone is empty.
But when zone is not empty and sysctl_lowmem_reserve_ratio[i] is set to
zero, zone_managed_pages(zone) is not counted in the managed_pages either.
This is inconsistent with the description of lowmem_reserve, so fix it.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: f63661566fad ("mm/page_alloc.c: clear out zone->lowmem_reserve[] if the zone is empty")
Signed-off-by: Liu Shixin <[email protected]>
Reported-by: yangerkun <[email protected]>
Reviewed-by: Baoquan He <[email protected]>
Acked-by: David Hildenbrand <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions