]> www.infradead.org Git - users/jedix/linux-maple.git/commit
percpu: remove pcpu_alloc_size()
authorJianhui Zhou <912460177@qq.com>
Wed, 7 Aug 2024 07:44:48 +0000 (15:44 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 17 Aug 2024 00:52:55 +0000 (17:52 -0700)
commit9c54b9390db77845c7b96f70ae95331a671144cb
treed808babc2afbb0fb0c23b335badce6274c594f0e
parent65f328d29807b6191a1520d0142e2b752f065b85
percpu: remove pcpu_alloc_size()

pcpu_alloc_size() was added in 7ac5c53e0073 "mm/percpu.c: introduce
pcpu_alloc_size()", which is used to get the allocated memory size in bpf.
However, pcpu_alloc_size() is no longer used in "bpf: Use c->unit_size to
select target cache during free" because its actuall allocated memory size
may change at runtime due to its slab merging mechanism.  Therefore,
pcpu_alloc_size() can be removed.

Link: https://lkml.kernel.org/r/tencent_AD5C50E8D78C07A3CE539BD5F6BF39706507@qq.com
Signed-off-by: Jianhui Zhou <912460177@qq.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Dennis Zhou <dennis@kernel.org>
Cc: JonasZhou <JonasZhou@zhaoxin.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/percpu.h
mm/percpu.c