summaryrefslogtreecommitdiff
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorMartin Hicks <mort@bork.org>2005-09-03 22:54:51 (GMT)
committerLinus Torvalds <torvalds@evo.osdl.org>2005-09-05 07:05:44 (GMT)
commit53e9a6159fdc6419874ce4d86d3577dbedc77b62 (patch)
tree7c7f15325569cf5e02dafc1974fb080154616058 /mm/page_alloc.c
parentbce5f6ba340b09d8b29902add204bb95a6d3d88b (diff)
downloadlinux-53e9a6159fdc6419874ce4d86d3577dbedc77b62.tar.xz
[PATCH] VM: zone reclaim atomic ops cleanup
Christoph Lameter and Marcelo Tosatti asked to get rid of the atomic_inc_and_test() to cleanup the atomic ops in the zone reclaim code. Signed-off-by: Martin Hicks <mort@sgi.com> 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/page_alloc.c')
-rw-r--r--mm/page_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 620aa11..d157dae 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -1909,7 +1909,7 @@ static void __init free_area_init_core(struct pglist_data *pgdat,
zone->nr_scan_inactive = 0;
zone->nr_active = 0;
zone->nr_inactive = 0;
- atomic_set(&zone->reclaim_in_progress, -1);
+ atomic_set(&zone->reclaim_in_progress, 0);
if (!size)
continue;