]> Git Repo - linux.git/commitdiff
vmscan: zone_reclaim() don't use insane swap_cluster_max
authorKOSAKI Motohiro <[email protected]>
Tue, 15 Dec 2009 01:59:13 +0000 (17:59 -0800)
committerLinus Torvalds <[email protected]>
Tue, 15 Dec 2009 16:53:18 +0000 (08:53 -0800)
In old days, we didn't have sc.nr_to_reclaim and it brought
sc.swap_cluster_max misuse.

huge sc.swap_cluster_max might makes unnecessary OOM risk and no
performance benefit.

Now, we can stop its insane thing.

Signed-off-by: KOSAKI Motohiro <[email protected]>
Reviewed-by: Rik van Riel <[email protected]>
Reviewed-by: Minchan Kim <[email protected]>
Cc: Mel Gorman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/vmscan.c

index 63bd521bb2297660a27c5abcedeaec59ba3f68c7..d55d106ad179b4234f8c7bb68e50325757116a24 100644 (file)
@@ -2539,8 +2539,7 @@ static int __zone_reclaim(struct zone *zone, gfp_t gfp_mask, unsigned int order)
                .may_writepage = !!(zone_reclaim_mode & RECLAIM_WRITE),
                .may_unmap = !!(zone_reclaim_mode & RECLAIM_SWAP),
                .may_swap = 1,
-               .swap_cluster_max = max_t(unsigned long, nr_pages,
-                                      SWAP_CLUSTER_MAX),
+               .swap_cluster_max = SWAP_CLUSTER_MAX,
                .nr_to_reclaim = max_t(unsigned long, nr_pages,
                                       SWAP_CLUSTER_MAX),
                .gfp_mask = gfp_mask,
This page took 0.05704 seconds and 4 git commands to generate.