> @@ -2320,6 +2324,8 @@ static unsigned long balance_pgdat(pg_data_t *pgdat, int order, > int end_zone = 0; /* Inclusive. 0 = ZONE_DMA */ > unsigned long total_scanned; > struct reclaim_state *reclaim_state = current->reclaim_state; > + unsigned long nr_soft_reclaimed; > + unsigned long nr_soft_scanned; > struct scan_control sc = { > .gfp_mask = GFP_KERNEL, > .may_unmap = 1, > @@ -2409,11 +2415,15 @@ loop_again: > > sc.nr_scanned = 0; > > + nr_soft_scanned = 0; > /* > * Call soft limit reclaim before calling shrink_zone. > - * For now we ignore the return value > */ > - mem_cgroup_soft_limit_reclaim(zone, order, sc.gfp_mask); > + nr_soft_reclaimed = mem_cgroup_soft_limit_reclaim(zone, > + order, sc.gfp_mask, > + &nr_soft_scanned); > + sc.nr_reclaimed += nr_soft_reclaimed; > + total_scanned += nr_soft_scanned; > > /* > * We put equal pressure on every zone, unless Thank you. Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx> -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>