[PATCH v1 0/4] mm: move vma_(kernel|mmu)_pagesize() out of hugetlb.c
Pedro Falcato
pfalcato at suse.de
Fri Mar 6 22:13:41 AEDT 2026
On Fri, Mar 06, 2026 at 11:15:56AM +0100, David Hildenbrand (Arm) wrote:
> Looking into vma_(kernel|mmu)_pagesize(), I realized that there is one
> scenario where DAX would not do the right thing when the kernel is
> not compiled with hugetlb support.
>
> Without hugetlb support, vma_(kernel|mmu)_pagesize() will always return
> PAGE_SIZE instead of using the ->pagesize() result provided by dax-device
> code.
>
> Fix that by moving vma_kernel_pagesize() to core MM code, where it belongs.
> I don't think this is stable material, but am not 100% sure.
>
> Also, move vma_mmu_pagesize() while at it. Remove the unnecessary hugetlb.h
> inclusion from KVM code.
>
> Cross-compiled heavily.
>
> Cc: Andrew Morton <akpm at linux-foundation.org>
> Cc: Madhavan Srinivasan <maddy at linux.ibm.com>
> Cc: Nicholas Piggin <npiggin at gmail.com>
> Cc: Michael Ellerman <mpe at ellerman.id.au>
> Cc: "Christophe Leroy (CS GROUP)" <chleroy at kernel.org>
> Cc: Muchun Song <muchun.song at linux.dev>
> Cc: Oscar Salvador <osalvador at suse.de>
> Cc: Lorenzo Stoakes <ljs at kernel.org>
> Cc: "Liam R. Howlett" <Liam.Howlett at oracle.com>
> Cc: Vlastimil Babka <vbabka at kernel.org>
> Cc: Mike Rapoport <rppt at kernel.org>
> Cc: Suren Baghdasaryan <surenb at google.com>
> Cc: Michal Hocko <mhocko at suse.com>
> Cc: Jann Horn <jannh at google.com>
> Cc: Pedro Falcato <pfalcato at suse.de>
> Cc: Paolo Bonzini <pbonzini at redhat.com>
> Cc: Dan Williams <dan.j.williams at intel.com>
Although we all love less mail, FYI it seems like this didn't work properly
for the patches (no CC's on there).
Did you try git-email --cc-cover?
--
Pedro
More information about the Linuxppc-dev
mailing list