Re: [patch 1/2] mm: vmscan: fix force-scanning small targets without swap

Andrew Morton
2011-08-31T23:38:23Z

On Mon, 29 Aug 2011 18:08:39 +0200
Johannes Weiner <jweiner@redhat.com> wrote:

> Andrew,
>
> On Thu, Aug 11, 2011 at 10:31:54PM +0200, Johannes Weiner wrote:
> > Without swap, anonymous pages are not scanned. As such, they should
> > not count when considering force-scanning a small target if there is
> > no swap.
> >
> > Otherwise, targets are not force-scanned even when their effective
> > scan number is zero and the other conditions--kswapd/memcg--apply.
>
> I forgot to mention, this patch is a fix for '246e87a memcg: fix
> get_scan_count() for small targets', which went upstream this merge
> window.
>
> Probably makes sense to merge this one too before the release..?
>

Ah, I didn't realise that. Thanks.