mm/page_alloc.c: fix wrong initialization when sysctl_min_unmapped_ratio changes
Subsystems (2)
[email protected]
maintainerPATCH 4/8 mm/page_alloc.c: fix wrong initialization when sysctl_min_unmapped_ratio changes
From: Joonsoo Kim <[email protected]>
Subject: 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)
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]>
---
mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/page_alloc.c renamed from mm/page_alloc.c~mm-page_alloc-fix-wrong-initialization-when-sysctl_min_unmapped_ratio-changes +1 -1
@@ -6854,7 +6854,7 @@ int sysctl_min_unmapped_ratio_sysctl_hanreturn 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 *
_