diff options
author | David Hildenbrand <david@redhat.com> | 2021-05-05 03:39:39 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-05-05 20:27:26 +0200 |
commit | f9901144e48f6a7ba186249add705d10e74738ec (patch) | |
tree | 3565009b50c78a0a5c3336655f4e130c6261913d /mm/sparse.c | |
parent | mm,memory_hotplug: relax fully spanned sections check (diff) | |
download | linux-f9901144e48f6a7ba186249add705d10e74738ec.tar.xz linux-f9901144e48f6a7ba186249add705d10e74738ec.zip |
mm,memory_hotplug: factor out adjusting present pages into adjust_present_page_count()
Let's have a single place (inspired by adjust_managed_page_count())
where we adjust present pages.
In contrast to adjust_managed_page_count(), only memory onlining or
offlining is allowed to modify the number of present pages.
Link: https://lkml.kernel.org/r/20210421102701.25051-4-osalvador@suse.de
Signed-off-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Oscar Salvador <osalvador@suse.de>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Pavel Tatashin <pasha.tatashin@soleen.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions