]> Git Repo - linux.git/commit
kasan, page_alloc: move kernel_init_free_pages in post_alloc_hook
authorAndrey Konovalov <[email protected]>
Fri, 25 Mar 2022 01:10:40 +0000 (18:10 -0700)
committerLinus Torvalds <[email protected]>
Fri, 25 Mar 2022 02:06:46 +0000 (19:06 -0700)
commit7e3cbba65de22f20ad18a2de09f65238bfe84c5b
treeff95db2968ab754e7d5b1f94867609feea8d67be
parent89b2711633281b3d712b1df96c5065a82ccbfb9c
kasan, page_alloc: move kernel_init_free_pages in post_alloc_hook

Pull the kernel_init_free_pages() call in post_alloc_hook() out of the big
if clause for better code readability.  This also allows for more
simplifications in the following patch.

This patch does no functional changes.

Link: https://lkml.kernel.org/r/a7a76456501eb37ddf9fca6529cee9555e59cdb1.1643047180.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <[email protected]>
Reviewed-by: Alexander Potapenko <[email protected]>
Acked-by: Marco Elver <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: Dmitry Vyukov <[email protected]>
Cc: Evgenii Stepanov <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Peter Collingbourne <[email protected]>
Cc: Vincenzo Frascino <[email protected]>
Cc: Will Deacon <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/page_alloc.c
This page took 0.059887 seconds and 4 git commands to generate.