lkml.org 
[lkml]   [2008]   [May]   [15]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateThu, 15 May 2008 09:12:30 -0400
FromRik van Riel <>
SubjectRe: [PATCH -mm 09/15] add some sanity checks to get_scan_ratio
On Thu, 15 May 2008 15:34:51 +0900
"MinChan Kim" <minchan.kim@gmail.com> wrote:

> --- a/mm/vmscan.c
> +++ b/mm/vmscan.c
> @@ -1375,8 +1375,7 @@ static unsigned long shrink_zone(int priority, struct zon
>          * rebalance the anon lru active/inactive ratio.
>          */
>         if (scan_global_lru(sc) && inactive_anon_low(zone))
> -               shrink_list(NR_ACTIVE_ANON, SWAP_CLUSTER_MAX, zone, sc,
> -                                                               priority);
> +               shrink_inactive_list(SWAP_CLUSTER_MAX, zone, sc, priority, 0);
> 
>         throttle_vm_writeout(sc->gfp_mask);
>         return nr_reclaimed;

shrink_active_list, but yes, that is the idea.

-- 
All rights reversed.


\
 
 \ /
  Last update: 2008-05-15 15:15    [from the cache]
©2003-2008