aboutsummaryrefslogtreecommitdiffstats
path: root/mm/sparse-vmemmap.c
diff options
context:
space:
mode:
authorAneesh Kumar K.V <[email protected]>2023-07-24 19:07:49 +0000
committerAndrew Morton <[email protected]>2023-08-18 17:12:53 +0000
commitc1a6c536fb088c01d6bdce77731d89ad5e1734c6 (patch)
treebc883e4fee5037a319e88a98538e6cd0c475cb57 /mm/sparse-vmemmap.c
parentmm: change pudp_huge_get_and_clear_full take vm_area_struct as arg (diff)
downloadkernel-c1a6c536fb088c01d6bdce77731d89ad5e1734c6.tar.gz
kernel-c1a6c536fb088c01d6bdce77731d89ad5e1734c6.zip
mm/vmemmap: improve vmemmap_can_optimize and allow architectures to override
dax vmemmap optimization requires a minimum of 2 PAGE_SIZE area within vmemmap such that tail page mapping can point to the second PAGE_SIZE area. Enforce that in vmemmap_can_optimize() function. Architectures like powerpc also want to enable vmemmap optimization conditionally (only with radix MMU translation). Hence allow architecture override. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Aneesh Kumar K.V <[email protected]> Reviewed-by: Christophe Leroy <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Dan Williams <[email protected]> Cc: Joao Martins <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: Mike Kravetz <[email protected]> Cc: Muchun Song <[email protected]> Cc: Nicholas Piggin <[email protected]> Cc: Oscar Salvador <[email protected]> Cc: Will Deacon <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/sparse-vmemmap.c')
0 files changed, 0 insertions, 0 deletions