]> git.baikalelectronics.ru Git - kernel.git/commit
mm: kmemleak: add rbtree and store physical address for objects allocated with PA
authorPatrick Wang <patrick.wang.shcn@gmail.com>
Sat, 11 Jun 2022 03:55:50 +0000 (11:55 +0800)
committerakpm <akpm@linux-foundation.org>
Fri, 17 Jun 2022 02:48:30 +0000 (19:48 -0700)
commit5fffc7a5b35248591710c075494a8fc3f2171ab2
treec3d8265401425759229d3622f472612a271d88c7
parent94ab517cba8b4e0ef3d57ee9e01ca13ba609f453
mm: kmemleak: add rbtree and store physical address for objects allocated with PA

Add object_phys_tree_root to store the objects allocated with physical
address.  Distinguish it from object_tree_root by OBJECT_PHYS flag or
function argument.  The physical address is stored directly in those
objects.

Link: https://lkml.kernel.org/r/20220611035551.1823303-4-patrick.wang.shcn@gmail.com
Signed-off-by: Patrick Wang <patrick.wang.shcn@gmail.com>
Suggested-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Yee Lee <yee.lee@mediatek.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/kmemleak.c