commit | 81cbcbc2d810c0ce49fba81f864302e1afe5ff27 | [log] [tgz] |
---|---|---|
author | Joonsoo Kim <[email protected]> | Wed Aug 10 16:27:46 2016 -0700 |
committer | Linus Torvalds <[email protected]> | Wed Aug 10 16:40:56 2016 -0700 |
tree | 309a665890c4ef6b3a31fd06401cc6d9c420bdbf | |
parent | 3b33719c9b741066f7d2bc6036409752f8e0478d [diff] [blame] |
mm/page_alloc.c: fix wrong initialization when sysctl_min_unmapped_ratio changes Before resetting min_unmapped_pages, we need to initialize min_unmapped_pages rather than min_slab_pages. Fixes: a5f5f91da6 (mm: convert zone_reclaim to node_reclaim) Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Joonsoo Kim <[email protected]> Acked-by: Mel Gorman <[email protected]> Cc: Vlastimil Babka <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Minchan Kim <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index ee744fa..9a92718 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c
@@ -6854,7 +6854,7 @@ return rc; for_each_online_pgdat(pgdat) - pgdat->min_slab_pages = 0; + pgdat->min_unmapped_pages = 0; for_each_zone(zone) zone->zone_pgdat->min_unmapped_pages += (zone->managed_pages *