[PATCH 6.12 121/512] page_pool: Move pp_magic check into helper functions