Re: [RFC PATCH v1 2/4] mm/hugetlb: Change parameters of arch_make_huge_pte()

2021-04-29 Thread Mike Kravetz
On 4/28/21 9:46 AM, Christophe Leroy wrote: > At the time being, arch_make_huge_pte() has the following prototype: > > pte_t arch_make_huge_pte(pte_t entry, struct vm_area_struct *vma, >struct page *page, int writable); > > vma is used to get the pages shift

[RFC PATCH v1 2/4] mm/hugetlb: Change parameters of arch_make_huge_pte()

2021-04-28 Thread Christophe Leroy
At the time being, arch_make_huge_pte() has the following prototype: pte_t arch_make_huge_pte(pte_t entry, struct vm_area_struct *vma, struct page *page, int writable); vma is used to get the pages shift or size. vma is also used on Sparc to get vm_flags.