summaryrefslogtreecommitdiff
path: root/mm/swapfile.c
diff options
context:
space:
mode:
authorYee Lee <yee.lee@mediatek.com>2022-06-28 14:37:11 +0300
committerakpm <akpm@linux-foundation.org>2022-07-19 01:07:51 +0300
commit07313a2b29ed1079eaa7722624544b97b3ead84b (patch)
tree61ab78164ceaae3603f3351605fdba639d5ad5ad /mm/swapfile.c
parent14c99d65941538aa33edd8dc7b1bbbb593c324a2 (diff)
downloadlinux-07313a2b29ed1079eaa7722624544b97b3ead84b.tar.xz
mm: kfence: apply kmemleak_ignore_phys on early allocated pool
This patch solves two issues. (1) The pool allocated by memblock needs to unregister from kmemleak scanning. Apply kmemleak_ignore_phys to replace the original kmemleak_free as its address now is stored in the phys tree. (2) The pool late allocated by page-alloc doesn't need to unregister. Move out the freeing operation from its call path. Link: https://lkml.kernel.org/r/20220628113714.7792-2-yee.lee@mediatek.com Fixes: 0c24e061196c21d5 ("mm: kmemleak: add rbtree and store physical address for objects allocated with PA") Signed-off-by: Yee Lee <yee.lee@mediatek.com> Suggested-by: Catalin Marinas <catalin.marinas@arm.com> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Suggested-by: Marco Elver <elver@google.com> Reviewed-by: Marco Elver <elver@google.com> Tested-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/swapfile.c')
0 files changed, 0 insertions, 0 deletions