Re: [PATCH] shrink_all_memory() use sc.nr_reclaimed

From: KOSAKI Motohiro
Date: Wed Feb 11 2009 - 08:03:30 EST


> > I mean here.
> >
> > '
> > NR_LRU_BASE + l));
> > ret += shrink_list(l, nr_to_scan, zone,
> > sc, prio);
> > if (ret >= nr_pages)
> > return ret;
> > }
> > '
> >
> > I have to make patch again so that it will keep on old bale-out behavior.
>
> Sure.
> thanks.

As I mean,

@@ -2082,15 +2082,14 @@ static unsigned long shrink_all_zones(unsigned long nr_pages, int prio,
nr_to_scan = min(nr_pages,
zone_page_state(zone,
NR_LRU_BASE + l));
nr_reclaimed += shrink_list(l, nr_to_scan, zone,
sc, prio);
- if (nr_reclaimed >= nr_pages)
- if (nr_reclaimed > sc.swap_cluster_max)
break;
}
}


this is keep old behavior and consist shrink_zone(), I think.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/