mm/memory_hotplug: add comment to some functions related to memory hotplug
Subsystems (2)
[email protected]
maintainerPATCH 64/117 mm/memory_hotplug: add comment to some functions related to memory hotplug
From: Joonsoo Kim <[email protected]>
Subject: mm/memory_hotplug: add comment to some functions related to memory hotplug
__offline_isolated_pages() and test_pages_isolated() are used by memory hotplug. These functions require that range is in a single zone but there is no code to do this because memory hotplug checks it before calling these functions. To avoid confusing future user of these functions, this patch adds comments to them.
Signed-off-by Joonsoo Kim <[email protected]>
Acked-by Vlastimil Babka <[email protected]>
Cc Rik van Riel <[email protected]>
Cc Johannes Weiner <[email protected]>
Cc Mel Gorman <[email protected]>
Cc Laura Abbott <[email protected]>
Cc Minchan Kim <[email protected]>
Cc Marek Szyprowski <[email protected]>
Cc Michal Nazarewicz <[email protected]>
Cc "Aneesh Kumar K.V" <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>
Cc Benjamin Herrenschmidt <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc Michael Ellerman <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/page_alloc.c | 3 ++- mm/page_isolation.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-)
mm/page_alloc.c renamed from mm/page_alloc.c~mm-memory_hotplug-add-comment-to-some-functions-related-to-memory-hotplug +2 -1
@@ -7176,7 +7176,8 @@ void zone_pcp_reset(struct zone *zone)#ifdef CONFIG_MEMORY_HOTREMOVE /* -* All pages in the range must be isolated before calling this. +* All pages in the range must be in a single zone and isolated +* before calling this. */ void __offline_isolated_pages (unsigned long start_pfn,unsigned long end_pfn)
mm/page_isolation.c renamed from mm/page_isolation.c~mm-memory_hotplug-add-comment-to-some-functions-related-to-memory-hotplug +1 -0
@@ -246,6 +246,7 @@ __test_page_isolated_in_pageblock(unsignreturn pfn; } +/* Caller should ensure that requested range is in a single zone */ int test_pages_isolated (unsigned long start_pfn,unsigned long end_pfn,bool skip_hwpoisoned_pages) {
_