Re: [PATCH -mm 07/12] second chance replacement for anonymous pages

From: Balbir Singh
Date: Sun Jun 01 2008 - 16:06:10 EST


* Rik van Riel <riel@xxxxxxxxxx> [2008-05-29 16:22:53]:

> From: Rik van Riel <riel@xxxxxxxxxx>
>
> + if (lru == LRU_ACTIVE_ANON &&
> + (!scan_global_lru(sc) || inactive_anon_low(zone))) {
> shrink_active_list(nr_to_scan, zone, sc, priority, file);
> return 0;
> }

This should do the trick. I was playing around with v8 and came up
with the exact same fix, after having spent some time reviewing and
playing around with the code.

Let me bundle up all of V9 and test it.

--
Warm Regards,
Balbir Singh
Linux Technology Center
IBM, ISTL
--
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/