diff options
author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2023-12-28 15:47:04 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-01-09 00:27:15 +0100 |
commit | 5e0a760b44417f7cadd79de2204d6247109558a0 (patch) | |
tree | 5f93b6d09d15cb11b0d92e8e4b98dedf1d9ab5b6 /mm/debug_page_alloc.c | |
parent | mm, treewide: introduce NR_PAGE_ORDERS (diff) | |
download | linux-5e0a760b44417f7cadd79de2204d6247109558a0.tar.xz linux-5e0a760b44417f7cadd79de2204d6247109558a0.zip |
mm, treewide: rename MAX_ORDER to MAX_PAGE_ORDER
commit 23baf831a32c ("mm, treewide: redefine MAX_ORDER sanely") has
changed the definition of MAX_ORDER to be inclusive. This has caused
issues with code that was not yet upstream and depended on the previous
definition.
To draw attention to the altered meaning of the define, rename MAX_ORDER
to MAX_PAGE_ORDER.
Link: https://lkml.kernel.org/r/20231228144704.14033-2-kirill.shutemov@linux.intel.com
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/debug_page_alloc.c')
-rw-r--r-- | mm/debug_page_alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/debug_page_alloc.c b/mm/debug_page_alloc.c index f9d145730fd1..6755f0c9d4a3 100644 --- a/mm/debug_page_alloc.c +++ b/mm/debug_page_alloc.c @@ -22,7 +22,7 @@ static int __init debug_guardpage_minorder_setup(char *buf) { unsigned long res; - if (kstrtoul(buf, 10, &res) < 0 || res > MAX_ORDER / 2) { + if (kstrtoul(buf, 10, &res) < 0 || res > MAX_PAGE_ORDER / 2) { pr_err("Bad debug_guardpage_minorder value\n"); return 0; } |