lkml.org 
[lkml]   [2008]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [-mm][PATCH][resend] split-lru-memcg page reclaim active anon fix v2
> Index: linux-2.6.26-rc8-mm1/mm/vmscan.c
> ===================================================================
> --- linux-2.6.26-rc8-mm1.orig/mm/vmscan.c
> +++ linux-2.6.26-rc8-mm1/mm/vmscan.c
> @@ -1499,7 +1499,7 @@ static unsigned long shrink_zone(int pri
> * Even if we did not try to evict anon pages at all, we want to
> * rebalance the anon lru active/inactive ratio.
> */
> - if (scan_global_lru(sc) && inactive_anon_is_low(zone))
> + if (!scan_global_lru(sc) || inactive_anon_is_low(zone))
> shrink_active_list(SWAP_CLUSTER_MAX, zone, sc, priority, 0);
>
> throttle_vm_writeout(sc->gfp_mask);

Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>





\
 
 \ /
  Last update: 2008-07-14 10:21    [W:0.065 / U:0.440 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site