diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/vmscan.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index 303eb658b50b..cf8441345277 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -1963,11 +1963,10 @@ static int kswapd(void *p) | |||
1963 | struct reclaim_state reclaim_state = { | 1963 | struct reclaim_state reclaim_state = { |
1964 | .reclaimed_slab = 0, | 1964 | .reclaimed_slab = 0, |
1965 | }; | 1965 | }; |
1966 | node_to_cpumask_ptr(cpumask, pgdat->node_id); | ||
1966 | 1967 | ||
1967 | lockdep_set_current_reclaim_state(GFP_KERNEL); | 1968 | lockdep_set_current_reclaim_state(GFP_KERNEL); |
1968 | 1969 | ||
1969 | node_to_cpumask_ptr(cpumask, pgdat->node_id); | ||
1970 | |||
1971 | if (!cpumask_empty(cpumask)) | 1970 | if (!cpumask_empty(cpumask)) |
1972 | set_cpus_allowed_ptr(tsk, cpumask); | 1971 | set_cpus_allowed_ptr(tsk, cpumask); |
1973 | current->reclaim_state = &reclaim_state; | 1972 | current->reclaim_state = &reclaim_state; |