Re: memcg: lru scan fix (Was: 2.6.26-rc8-mm1

Andrew Morton
2008-07-04T19:24:59Z

On Fri, 4 Jul 2008 15:16:56 -0400 Rik van Riel <riel@redhat.com> wrote:

> On Fri, 4 Jul 2008 18:02:26 +0900
> KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> wrote:
>
> > Index: test-2.6.26-rc8-mm1/mm/vmscan.c
> > ===================================================================
> > --- test-2.6.26-rc8-mm1.orig/mm/vmscan.c
> > +++ test-2.6.26-rc8-mm1/mm/vmscan.c
> > @@ -1501,6 +1501,8 @@ static unsigned long shrink_zone(int pri
> > */
> > if (scan_global_lru(sc) && inactive_anon_is_low(zone))
> > shrink_active_list(SWAP_CLUSTER_MAX, zone, sc, priority, 0);
> > + else if (!scan_global_lru(sc))
> > + shrink_active_list(SWAP_CLUSTER_MAX, zone, sc, priority, 0);
>
> Makes sense.
>
> Acked-by: Rik van Riel <riel@redhat.com>
>

Thanks. Poor old me needs to work out which patch this patch fixes.
It's always appreciated if others tell me :)