From: KOSAKI Motohiro Date: Tue, 15 Dec 2009 01:59:15 +0000 (-0800) Subject: vmscan: make consistent of reclaim bale out between do_try_to_free_page and shrink_zone X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=338fde90930eaa02f6f394daa23d35a410af5852;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git vmscan: make consistent of reclaim bale out between do_try_to_free_page and shrink_zone Fix small inconsistent of ">" and ">=". Signed-off-by: KOSAKI Motohiro Reviewed-by: Rik van Riel Reviewed-by: Minchan Kim Cc: Mel Gorman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/vmscan.c b/mm/vmscan.c index 2b1c74817a1e..2ef59d5b16a6 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -1637,7 +1637,7 @@ static void shrink_zone(int priority, struct zone *zone, * with multiple processes reclaiming pages, the total * freeing target can get unreasonably large. */ - if (nr_reclaimed > nr_to_reclaim && priority < DEF_PRIORITY) + if (nr_reclaimed >= nr_to_reclaim && priority < DEF_PRIORITY) break; }