From: Andrew Morton Date: Wed, 20 Feb 2013 02:14:01 +0000 (+1100) Subject: mm-vmscan-compaction-works-against-zones-not-lruvecs-fix X-Git-Tag: next-20130220~1^2~584 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=982b30a47d6e3d1dcdff21179d6b73f9ea020ce6;p=karo-tx-linux.git 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 --- 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,