Index: linux-2.6.17-rc6-mm2/mm/page_alloc.c =================================================================== --- linux-2.6.17-rc6-mm2.orig/mm/page_alloc.c 2006-06-10 11:30:44.560354535 -0700 +++ linux-2.6.17-rc6-mm2/mm/page_alloc.c 2006-06-10 11:34:22.213840263 -0700 @@ -2881,8 +2881,8 @@ static void vm_events_fold_cpu(int cpu) int i; for (i = 0; i < NR_VM_EVENT_ITEMS; i++) { - count_vm_events(i, fold_state->event[i]); - local_set(fold_state->event[i], 0); + count_vm_events(i, local_read(&fold_state->event[i])); + local_set(&fold_state->event[i], 0); } }