diff options
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 04dd2b01b2b7..8350720f98a8 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -2124,16 +2124,11 @@ static int page_alloc_cpu_notify(struct notifier_block *self, | |||
2124 | unsigned long action, void *hcpu) | 2124 | unsigned long action, void *hcpu) |
2125 | { | 2125 | { |
2126 | int cpu = (unsigned long)hcpu; | 2126 | int cpu = (unsigned long)hcpu; |
2127 | long *count; | ||
2128 | unsigned long *src, *dest; | 2127 | unsigned long *src, *dest; |
2129 | 2128 | ||
2130 | if (action == CPU_DEAD) { | 2129 | if (action == CPU_DEAD) { |
2131 | int i; | 2130 | int i; |
2132 | 2131 | ||
2133 | /* Drain local pagecache count. */ | ||
2134 | count = &per_cpu(nr_pagecache_local, cpu); | ||
2135 | atomic_add(*count, &nr_pagecache); | ||
2136 | *count = 0; | ||
2137 | local_irq_disable(); | 2132 | local_irq_disable(); |
2138 | __drain_pages(cpu); | 2133 | __drain_pages(cpu); |
2139 | 2134 | ||