diff options
author | Christoph Lameter <clameter@engr.sgi.com> | 2006-02-12 02:55:54 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-12 06:41:11 +0100 |
commit | 072eaa5d9cc3e63f567ffd9ad87b36194fdd8010 (patch) | |
tree | 27b4acaea0ed57a839148e8d33d7ea5952c704d1 /mm/vmscan.c | |
parent | [PATCH] zone reclaim: do not check references to a page during zone reclaim (diff) | |
download | linux-072eaa5d9cc3e63f567ffd9ad87b36194fdd8010.tar.xz linux-072eaa5d9cc3e63f567ffd9ad87b36194fdd8010.zip |
[PATCH] vmscan: remove duplicate increment of reclaim_in_progress
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>
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r-- | mm/vmscan.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index e1c64230ffdd..58ed5125b1a7 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -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); |