diff options
Diffstat (limited to 'libbcachefs/util.c')
-rw-r--r-- | libbcachefs/util.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libbcachefs/util.c b/libbcachefs/util.c index e3ad26e2..463260c0 100644 --- a/libbcachefs/util.c +++ b/libbcachefs/util.c @@ -887,13 +887,9 @@ void eytzinger0_find_test(void) */ u64 *bch2_acc_percpu_u64s(u64 __percpu *p, unsigned nr) { - u64 *ret; + u64 *ret = this_cpu_ptr(p); int cpu; - preempt_disable(); - ret = this_cpu_ptr(p); - preempt_enable(); - for_each_possible_cpu(cpu) { u64 *i = per_cpu_ptr(p, cpu); |