]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm-vmscan-compaction-works-against-zones-not-lruvecs-fix
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 20 Feb 2013 02:14:01 +0000 (13:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:21 +0000 (16:52 +1100)
no need for min_t

Cc: Hugh Dickins <hughd@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Rik van Riel <riel@redhat.com>
Cc: Satoru Moriya <satoru.moriya@hds.com>
Cc: Simon Jeons <simon.jeons@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmscan.c

index 5e0842c7995b223d3268c805a7f7fd528f191e4d..ef123356c6ab0813bbaf20731c52893b101e749e 100644 (file)
@@ -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,