|
@@ -104,13 +104,13 @@ void percpu_counter_destroy(struct percpu_counter *fbc)
|
|
if (!fbc->counters)
|
|
if (!fbc->counters)
|
|
return;
|
|
return;
|
|
|
|
|
|
- free_percpu(fbc->counters);
|
|
|
|
- fbc->counters = NULL;
|
|
|
|
#ifdef CONFIG_HOTPLUG_CPU
|
|
#ifdef CONFIG_HOTPLUG_CPU
|
|
mutex_lock(&percpu_counters_lock);
|
|
mutex_lock(&percpu_counters_lock);
|
|
list_del(&fbc->list);
|
|
list_del(&fbc->list);
|
|
mutex_unlock(&percpu_counters_lock);
|
|
mutex_unlock(&percpu_counters_lock);
|
|
#endif
|
|
#endif
|
|
|
|
+ free_percpu(fbc->counters);
|
|
|
|
+ fbc->counters = NULL;
|
|
}
|
|
}
|
|
EXPORT_SYMBOL(percpu_counter_destroy);
|
|
EXPORT_SYMBOL(percpu_counter_destroy);
|
|
|
|
|