[PATCH 6.15 188/780] page_pool: Move pp_magic check into helper functions