diff --git a/mm/vmscan.c b/mm/vmscan.c index 30f482d18a07..a766c9c227b7 100755 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -3772,7 +3772,7 @@ static void kswapd_try_to_sleep(pg_data_t *pgdat, int alloc_order, int reclaim_o finish_wait(&pgdat->kswapd_wait, &wait); } -#ifdef CONFIG_KSWAPD_CPU +#if CONFIG_KSWAPD_CPU static struct cpumask kswapd_cpumask; static void init_kswapd_cpumask(void) { @@ -3808,7 +3808,7 @@ static int kswapd(void *p) struct reclaim_state reclaim_state = { .reclaimed_slab = 0, }; -#ifdef CONFIG_KSWAPD_CPU +#if CONFIG_KSWAPD_CPU const struct cpumask *cpumask = &kswapd_cpumask; #else const struct cpumask *cpumask = cpumask_of_node(pgdat->node_id); @@ -3986,7 +3986,7 @@ static int kswapd_cpu_online(unsigned int cpu) pg_data_t *pgdat = NODE_DATA(nid); const struct cpumask *mask; -#ifdef CONFIG_KSWAPD_CPU +#if CONFIG_KSWAPD_CPU mask = &kswapd_cpumask; #else mask = cpumask_of_node(pgdat->node_id); @@ -4040,7 +4040,7 @@ static int __init kswapd_init(void) { int nid, ret; -#ifdef CONFIG_KSWAPD_CPU +#if CONFIG_KSWAPD_CPU init_kswapd_cpumask(); #endif swap_setup();