[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>
This commit is contained in:

committed by
Linus Torvalds

parent
bce5f6ba34
commit
53e9a6159f
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user