Re: [PATCH] mmtom: Prevent shrinking of active anon lru list in case of no swap space V2

From: KOSAKI Motohiro
Date: Thu May 14 2009 - 07:26:18 EST


>
> Changelog since V2
> o Add new function - can_reclaim_anon : it tests anon_list can be reclaim
>
> Changelog since V1
> o Use nr_swap_pages <= 0 in shrink_active_list to prevent scanning of active anon list.
>
> Now shrink_active_list is called several places.
> But if we don't have a swap space, we can't reclaim anon pages.
> So, we don't need deactivating anon pages in anon lru list.
>
> Signed-off-by: Minchan Kim <minchan.kim@xxxxxxxxx>
> Cc: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx>
> Cc: Johannes Weiner <hannes@xxxxxxxxxxx>
> Cc: Rik van Riel <riel@xxxxxxxxxx>

looks good to me. thanks :)



--
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/