path: root/mm/memory_hotplug.c
diff options
authorMinchan Kim <>2009-06-16 15:32:48 -0700
committerLinus Torvalds <>2009-06-16 19:47:41 -0700
commitbc75d33f0fc1d56e734db1f56d3cfc8097b8e0cf (patch)
tree4dc5054afdff491d8378dee2a235da64d6ad3de6 /mm/memory_hotplug.c
parentb70d94ee438b3fd9c15c7691d7a932a135c18101 (diff)
page-allocator: clean up functions related to pages_min
Change the names of two functions. It doesn't affect behavior. Presently, setup_per_zone_pages_min() changes low, high of zone as well as min. So a better name is setup_per_zone_wmarks(). That's because Mel changed zone->pages_[hig/low/min] to zone->watermark array in "page allocator: replace the watermark-related union in struct zone with a watermark[] array". * setup_per_zone_pages_min => setup_per_zone_wmarks Of course, we have to change init_per_zone_pages_min, too. There are not pages_min any more. * init_per_zone_pages_min => init_per_zone_wmark_min [ coding-style fixes] Signed-off-by: Minchan Kim <> Acked-by: Mel Gorman <> Cc: KOSAKI Motohiro <> Cc: Rik van Riel <> Cc: Johannes Weiner <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'mm/memory_hotplug.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c
index c083cf5fd6df..037291e15b27 100644
--- a/mm/memory_hotplug.c
+++ b/mm/memory_hotplug.c
@@ -422,7 +422,7 @@ int online_pages(unsigned long pfn, unsigned long nr_pages)
zone->present_pages += onlined_pages;
zone->zone_pgdat->node_present_pages += onlined_pages;
- setup_per_zone_pages_min();
+ setup_per_zone_wmarks();
if (onlined_pages) {
node_set_state(zone_to_nid(zone), N_HIGH_MEMORY);