mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
FROMLIST: do_anonymous_page: use update_mmu_tlb()
update_mmu_tlb() can be used instead of update_mmu_cache() when the page fault handler detects that it lost the race to another page fault. It looks like this one call was missed in https://patchwork.kernel.org/project/linux-mips/patch/1590375160-6997-2-git-send-email-maobibo@loongson.cn after Andrew asked to replace all update_mmu_cache() calls with an alias in the previous version of this patch here: https://patchwork.kernel.org/project/linux-mips/patch/1590031837-9582-2-git-send-email-maobibo@loongson.cn/#23374625 Signed-off-by: Michel Lespinasse <michel@lespinasse.org> Link: https://lore.kernel.org/all/20220128131006.67712-5-michel@lespinasse.org/ Bug: 161210518 Signed-off-by: Suren Baghdasaryan <surenb@google.com> Change-Id: Iaad4d3c27e12c2d9bf68d1140709788fc8dead24
This commit is contained in:
committed by
Todd Kjos
parent
ab55b3bab6
commit
82ab55ebcc
@@ -3792,7 +3792,7 @@ static vm_fault_t do_anonymous_page(struct vm_fault *vmf)
|
||||
vmf->pte = pte_offset_map_lock(vma->vm_mm, vmf->pmd, vmf->address,
|
||||
&vmf->ptl);
|
||||
if (!pte_none(*vmf->pte)) {
|
||||
update_mmu_cache(vma, vmf->address, vmf->pte);
|
||||
update_mmu_tlb(vma, vmf->address, vmf->pte);
|
||||
goto release;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user