]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 May 2024 14:32:41 +0000 (16:32 +0200)
commitded1ffea52132e58eaaa7d4ea39477f911796a40
tree4a8f31839590049426c60347b26eb9cab4434d1e
parent4c5eaf0cad27a66c4788e0603b9f7a68df83a947
mm, treewide: introduce NR_PAGE_ORDERS

[ Upstream commit fd37721803c6e73619108f76ad2e12a9aa5fafaf ]

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>
Stable-dep-of: b6976f323a86 ("drm/ttm: stop pooling cached NUMA pages v2")
Signed-off-by: Sasha Levin <sashal@kernel.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