mm, treewide: introduce NR_PAGE_ORDERS
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Thu, 28 Dec 2023 14:47:03 +0000 (17:47 +0300)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 8 Jan 2024 23:27:15 +0000 (15:27 -0800)
commitfd37721803c6e73619108f76ad2e12a9aa5fafaf
tree9f4b4af44314d4e0c38bda7a6558abed65186260
parenta5b7620bab81f16e8bbb04f4aea94c4c7feb0d77
mm, treewide: introduce NR_PAGE_ORDERS

NR_PAGE_ORDERS defines the number of page orders supported by the page
allocator, ranging from 0 to MAX_ORDER, MAX_ORDER + 1 in total.

NR_PAGE_ORDERS assists in defining arrays of page orders and allows for
more natural iteration over them.

[kirill.shutemov@linux.intel.com: fixup for kerneldoc warning]
Link: https://lkml.kernel.org/r/20240101111512.7empzyifq7kxtzk3@box
Link: https://lkml.kernel.org/r/20231228144704.14033-1-kirill.shutemov@linux.intel.com
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Reviewed-by: Zi Yan <ziy@nvidia.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
15 files changed:
Documentation/admin-guide/kdump/vmcoreinfo.rst
arch/arm64/kvm/hyp/include/nvhe/gfp.h
arch/sparc/kernel/traps_64.c
drivers/gpu/drm/ttm/tests/ttm_device_test.c
drivers/gpu/drm/ttm/ttm_pool.c
include/drm/ttm/ttm_pool.h
include/linux/mmzone.h
kernel/crash_core.c
lib/test_meminit.c
mm/compaction.c
mm/kmsan/init.c
mm/page_alloc.c
mm/page_reporting.c
mm/show_mem.c
mm/vmstat.c