powerpc/book3e: Change hugetlb preload to take vma argument
This avoids an extra find_vma() and is less error-prone. Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
committed by
Benjamin Herrenschmidt
parent
1257a76547
commit
d93e4d7d72
@@ -553,7 +553,7 @@ void update_mmu_cache(struct vm_area_struct *vma, unsigned long address,
|
||||
#if (defined(CONFIG_PPC_BOOK3E_64) || defined(CONFIG_PPC_FSL_BOOK3E)) \
|
||||
&& defined(CONFIG_HUGETLB_PAGE)
|
||||
if (is_vm_hugetlb_page(vma))
|
||||
book3e_hugetlb_preload(vma->vm_mm, address, *ptep);
|
||||
book3e_hugetlb_preload(vma, address, *ptep);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user