From 982b30a47d6e3d1dcdff21179d6b73f9ea020ce6 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 20 Feb 2013 13:14:01 +1100 Subject: [PATCH] mm-vmscan-compaction-works-against-zones-not-lruvecs-fix no need for min_t Cc: Hugh Dickins Cc: Johannes Weiner Cc: Mel Gorman Cc: Michal Hocko Cc: Rik van Riel Cc: Satoru Moriya Cc: Simon Jeons Signed-off-by: Andrew Morton --- mm/vmscan.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 5e0842c7995b..ef123356c6ab 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -1841,8 +1841,7 @@ static void shrink_lruvec(struct lruvec *lruvec, struct scan_control *sc) nr[LRU_INACTIVE_FILE]) { for_each_evictable_lru(lru) { if (nr[lru]) { - nr_to_scan = min_t(unsigned long, - nr[lru], SWAP_CLUSTER_MAX); + nr_to_scan = min(nr[lru], SWAP_CLUSTER_MAX); nr[lru] -= nr_to_scan; nr_reclaimed += shrink_list(lru, nr_to_scan, -- 2.39.5