[PATCH mm v3 13/38] kasan, page_alloc: move kernel_init_free_pages in post_alloc_hook

Alexander Potapenko glider at google.com
Thu Dec 16 03:00:00 PST 2021


On Mon, Dec 13, 2021 at 10:53 PM <andrey.konovalov at linux.dev> wrote:
>
> From: Andrey Konovalov <andreyknvl at google.com>
>
> 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.
>
> Signed-off-by: Andrey Konovalov <andreyknvl at google.com>
Reviewed-by: Alexander Potapenko <glider at google.com>



More information about the linux-arm-kernel mailing list