summaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorMartin Hicks <mort@bork.org>2005-09-04 00:54:51 +0200
committerLinus Torvalds <torvalds@evo.osdl.org>2005-09-05 09:05:44 +0200
commit53e9a6159fdc6419874ce4d86d3577dbedc77b62 (patch)
tree7c7f15325569cf5e02dafc1974fb080154616058 /mm/page_alloc.c
parent[PATCH] VM: add capabilites check to set_zone_reclaim (diff)
downloadlinux-53e9a6159fdc6419874ce4d86d3577dbedc77b62.tar.xz
linux-53e9a6159fdc6419874ce4d86d3577dbedc77b62.zip
[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 620aa11b24eb..d157dae8c9f3 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;