]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] vmscan: remove duplicate increment of reclaim_in_progress
authorChristoph Lameter <clameter@engr.sgi.com>
Sun, 12 Feb 2006 01:55:54 +0000 (17:55 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 12 Feb 2006 05:41:11 +0000 (21:41 -0800)
shrink_zone() already increments reclaim_in_progress.  No need to do it in
balance_pgdat.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/vmscan.c

index e1c64230ffdd908db888b41022ce1cf31e130ed9..58ed5125b1a7f0db538d5d562d35fc5692263a8a 100644 (file)
@@ -1614,9 +1614,7 @@ scan:
                        sc.nr_reclaimed = 0;
                        sc.priority = priority;
                        sc.swap_cluster_max = nr_pages? nr_pages : SWAP_CLUSTER_MAX;
-                       atomic_inc(&zone->reclaim_in_progress);
                        shrink_zone(zone, &sc);
-                       atomic_dec(&zone->reclaim_in_progress);
                        reclaim_state->reclaimed_slab = 0;
                        nr_slab = shrink_slab(sc.nr_scanned, GFP_KERNEL,
                                                lru_pages);