mm/page_alloc: invert logic for early page initialisation checks
authorMike Rapoport (IBM) <rppt@kernel.org>
Wed, 4 Jan 2023 19:18:05 +0000 (21:18 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 19 Jan 2023 01:12:54 +0000 (17:12 -0800)
commitfc5744881eabcc73ed24a4229034f0fbdeb3f46f
tree92c72b2179322cc631ec4a0dae055cf18931e570
parentf78dfc7b77d5c3527d0f895bef693f711802de5a
mm/page_alloc: invert logic for early page initialisation checks

Rename early_page_uninitialised() to early_page_initialised() and invert
its logic to make the code more readable.

Link: https://lkml.kernel.org/r/20230104191805.2535864-1-rppt@kernel.org
Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c