acrn-kernel/arch/sparc/mm
Kirill A. Shutemov 7becae7cdf 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-07-18 13:23:04 +08:00
..
Makefile
fault_32.c sparc32: fix lock_mm_and_find_vma() conversion 2023-07-01 13:16:26 +02:00
fault_64.c mm: always expand the stack with the mmap write lock held 2023-07-01 13:16:25 +02:00
hugetlbpage.c mm: merge pte_mkhuge() call into arch_make_huge_pte() 2022-03-22 15:57:04 -07:00
hypersparc.S
init_32.c sparc/mm: move protection_map[] inside the platform 2022-07-17 17:14:37 -07:00
init_64.c sparc/mm: move protection_map[] inside the platform 2022-07-17 17:14:37 -07:00
init_64.h
io-unit.c
iommu.c sparc/iommu: return error codes from .map_sg() ops 2021-08-09 17:13:06 +02:00
leon_mm.c
mm_32.h
srmmu.c sparc: Unbreak the build 2022-09-29 19:21:10 -07:00
srmmu_access.S
swift.S
tlb.c
tsb.c mm, treewide: redefine MAX_ORDER sanely 2023-07-18 13:23:04 +08:00
tsunami.S
ultra.S
viking.S