linux-stable/arch/powerpc/mm/book3s64
Kirill A. Shutemov 23baf831a3 mm, treewide: redefine MAX_ORDER sanely
MAX_ORDER currently defined as number of orders page allocator supports:
user can ask buddy allocator for page order between 0 and MAX_ORDER-1.

This definition is counter-intuitive and lead to number of bugs all over
the kernel.

Change the definition of MAX_ORDER to be inclusive: the range of orders
user can ask from buddy allocator is 0..MAX_ORDER now.

[kirill@shutemov.name: fix min() warning]
  Link: https://lkml.kernel.org/r/20230315153800.32wib3n5rickolvh@box
[akpm@linux-foundation.org: fix another min_t warning]
[kirill@shutemov.name: fixups per Zi Yan]
  Link: https://lkml.kernel.org/r/20230316232144.b7ic4cif4kjiabws@box.shutemov.name
[akpm@linux-foundation.org: fix underlining in docs]
  Link: https://lore.kernel.org/oe-kbuild-all/202303191025.VRCTk6mP-lkp@intel.com/
Link: https://lkml.kernel.org/r/20230315113133.11326-11-kirill.shutemov@linux.intel.com
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Reviewed-by: Michael Ellerman <mpe@ellerman.id.au>	[powerpc]
Cc: "Kirill A. Shutemov" <kirill@shutemov.name>
Cc: Zi Yan <ziy@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2023-04-05 19:42:46 -07:00
..
hash_4k.c powerpc/64s/hash: add stress_hpt kernel boot option to increase hash faults 2022-12-02 18:04:25 +11:00
hash_64k.c powerpc/64s/hash: add stress_hpt kernel boot option to increase hash faults 2022-12-02 18:04:25 +11:00
hash_hugepage.c powerpc/book3s64/kuap: Use Key 3 for kernel mapping with hash translation 2020-12-04 01:01:25 +11:00
hash_native.c powerpc/64s: make HPTE lock and native_tlbie_lock irq-safe 2022-10-18 22:46:18 +11:00
hash_pgtable.c powerpc/64s: Fix hash__change_memory_range preemption warning 2022-10-18 22:46:18 +11:00
hash_tlb.c powerpc/mm/book3s/hash: Rename flush_tlb_pmd_range 2022-09-30 18:35:52 +10:00
hash_utils.c Merge branch 'fixes' into next 2023-02-12 22:11:56 +11:00
hugetlbpage.c powerpc/mm: Update default hugetlb size early 2022-02-12 22:47:44 +11:00
internal.h powerpc/64s/hash: add stress_hpt kernel boot option to increase hash faults 2022-12-02 18:04:25 +11:00
iommu_api.c mm, treewide: redefine MAX_ORDER sanely 2023-04-05 19:42:46 -07:00
Makefile powerpc: Book3S 64-bit outline-only KASAN support 2022-05-22 15:58:29 +10:00
mmu_context.c powerpc/mm: Add __init attribute to eligible functions 2021-12-23 22:33:11 +11:00
pgtable.c powerpc: Remove find_current_mm_pte() 2022-11-24 23:12:18 +11:00
pkeys.c powerpc: Include asm/firmware.h in all users of firmware_has_feature() 2022-06-29 16:45:05 +10:00
radix_hugetlbpage.c powerpc/64s: POWER10 nest MMU can upgrade PTE access authority without TLB flush 2022-07-27 21:36:04 +10:00
radix_pgtable.c powerpc/64s/radix: Fix RWX mapping with relocated kernel 2023-01-31 21:37:39 +11:00
radix_tlb.c lazy tlb: introduce lazy tlb mm refcount helper functions 2023-03-28 16:20:08 -07:00
slb.c powerpc: fix typos in comments 2022-05-05 22:12:44 +10:00
slice.c powerpc/mm: Enable full randomisation of memory mappings 2022-05-05 22:11:58 +10:00
subpage_prot.c mm: replace vma->vm_flags direct modifications with modifier calls 2023-02-09 16:51:39 -08:00
trace.c mm/migration: add trace events for THP migrations 2022-03-24 19:06:45 -07:00