mm: kmemleak: add __find_and_remove_object()
authorLiu Shixin <liushixin2@huawei.com>
Wed, 18 Oct 2023 10:29:51 +0000 (18:29 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 25 Oct 2023 23:47:13 +0000 (16:47 -0700)
commit858a195b9330d0bd36f59e8652f693a1beb7da2f
tree425c75fae972120e0a02784a9ecd08b6271dc5dc
parent2e1d47385f98aa0fa7d71aeee32d26cc6f8493e0
mm: kmemleak: add __find_and_remove_object()

Add new __find_and_remove_object() without kmemleak_lock protect, it is in
preparation for the next patch.

Link: https://lkml.kernel.org/r/20231018102952.3339837-7-liushixin2@huawei.com
Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: Patrick Wang <patrick.wang.shcn@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/kmemleak.c