From: Liam R. Howlett Date: Mon, 4 Jan 2021 19:56:58 +0000 (-0500) Subject: mm/huge_memory: Use vma_next() instead of vma linked list X-Git-Tag: howlett/maple_spf/20210118~17 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=ab4eacf20147c94ed854448ebd9424d7f576de1c;p=users%2Fjedix%2Flinux-maple.git mm/huge_memory: Use vma_next() instead of vma linked list Signed-off-by: Liam R. Howlett --- diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 5aa045e3b5dc..72e2ea6f696e 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -2321,12 +2321,12 @@ void vma_adjust_trans_huge(struct vm_area_struct *vma, split_huge_pmd_address(vma, end, false, NULL); /* - * If we're also updating the vma->vm_next->vm_start, if the new - * vm_next->vm_start isn't hpage aligned and it could previously + * If we're also updating the vma_next(vma)->vm_start, if the new + * vma_next()->vm_start isn't hpage aligned and it could previously * contain an hugepage: check if we need to split an huge pmd. */ if (adjust_next > 0) { - struct vm_area_struct *next = vma->vm_next; + struct vm_area_struct *next = vma_next(vma->vm_mm, vma); unsigned long nstart = next->vm_start; nstart += adjust_next; if (nstart & ~HPAGE_PMD_MASK &&