mm/page_alloc: use deferred_pages_enabled() wherever applicable
authorAnshuman Khandual <anshuman.khandual@arm.com>
Thu, 5 Jan 2023 08:25:06 +0000 (13:55 +0530)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 3 Feb 2023 06:33:22 +0000 (22:33 -0800)
commit076cf7ea67010d11a97912423f4cdbeff1bd1f5f
tree763445cb8b15a647c15b0be7194101b3e53b9470
parent7ec7096b8577d3b899c1dae456a414f2d08c7ddb
mm/page_alloc: use deferred_pages_enabled() wherever applicable

Instead of directly accessing static deferred_pages, replace such
instances with the helper deferred_pages_enabled().  No functional change
is intended.

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