samples/c/0/swap.c
static int cpu_swap_callback(struct notifier_block *nfb,
			     unsigned long action,
			     void *hcpu)
{
	long *committed;

	committed = &per_cpu(committed_space, (long)hcpu);
	if (action == CPU_DEAD || action == CPU_DEAD_FROZEN) {
		atomic_long_add(*committed, &vm_committed_space);
		*committed = 0;
		drain_cpu_pagevecs((long)hcpu);
	}
	return NOTIFY_OK;
}
/* Drop the CPU's cached committed space back into the central pool. */
Drop the CPU's cached committed space back into the central pool.
Drop the CPU ' s cached committed space back into the central pool .
static int cpu_swap_callback(struct notifier_block *nfb,
			     unsigned long action,
			     void *hcpu)
{
	long *committed;
	committed = &per_cpu(committed_space, (long)hcpu);
	if (action == CPU_DEAD || action == CPU_DEAD_FROZEN) {
		atomic_long_add(*committed, &vm_committed_space);
		*committed = 0;
		drain_cpu_pagevecs((long)hcpu);
	}
	return NOTIFY_OK;
}
static int cpu_swap_callback ( struct notifier_block * nfb , unsigned long action , void * hcpu ) { long * committed ; committed = & per_cpu ( committed_space , ( long ) hcpu ) ; if ( action == CPU_DEAD || action == CPU_DEAD_FROZEN ) { atomic_long_add ( * committed , & vm_committed_space ) ; * committed = 0 ; drain_cpu_pagevecs ( ( long ) hcpu ) ; } return NOTIFY_OK ; }
Drop the CPU's cached committed space back into the central pool.
Drop the CPU ' s cached committed space back into the central pool .