diff options
| author | Aneesh Kumar K.V <[email protected]> | 2023-07-24 19:07:49 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-08-18 17:12:53 +0000 |
| commit | c1a6c536fb088c01d6bdce77731d89ad5e1734c6 (patch) | |
| tree | bc883e4fee5037a319e88a98538e6cd0c475cb57 /mm/sparse-vmemmap.c | |
| parent | mm: change pudp_huge_get_and_clear_full take vm_area_struct as arg (diff) | |
| download | kernel-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
