]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/page_alloc: add helper for checking if check_pages_enabled
authorMike Rapoport (IBM) <rppt@kernel.org>
Tue, 21 Mar 2023 17:05:01 +0000 (19:05 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 28 Mar 2023 23:25:10 +0000 (16:25 -0700)
commit8fb96580c9be2503f80cf7e1c866b8d098654423
treeeaf19f0bf281abb510f548b1efdfc28ed5ddf4bc
parenta2480422b6c90e58a7eeb6d73adf29f4d421caeb
mm/page_alloc: add helper for checking if check_pages_enabled

Instead of duplicating long static_branch_enabled(&check_pages_enabled)
wrap it in a helper function is_check_pages_enabled()

Link: https://lkml.kernel.org/r/20230321170513.2401534-3-rppt@kernel.org
Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Doug Berger <opendmb@gmail.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c