mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-05 19:31:57 -04:00
Revert "ANDROID: mm: skip pte_alloc during speculative page fault"
This reverts commit b12d6d9506.
Change-Id: I0891749da9dc05c7f9a3ad909a9d054e74a45e2b
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
This commit is contained in:
parent
a1d1eb8bd3
commit
f3fcee6d90
1 changed files with 0 additions and 5 deletions
|
|
@ -3336,10 +3336,6 @@ static vm_fault_t do_anonymous_page(struct vm_fault *vmf)
|
|||
if (vmf->vma_flags & VM_SHARED)
|
||||
return VM_FAULT_SIGBUS;
|
||||
|
||||
/* Do not check unstable pmd, if it's changed will retry later */
|
||||
if (vmf->flags & FAULT_FLAG_SPECULATIVE)
|
||||
goto skip_pmd_checks;
|
||||
|
||||
/*
|
||||
* Use pte_alloc() instead of pte_alloc_map(). We can't run
|
||||
* pte_offset_map() on pmds where a huge pmd might be created
|
||||
|
|
@ -3357,7 +3353,6 @@ static vm_fault_t do_anonymous_page(struct vm_fault *vmf)
|
|||
if (unlikely(pmd_trans_unstable(vmf->pmd)))
|
||||
return 0;
|
||||
|
||||
skip_pmd_checks:
|
||||
/* Use the zero-page for reads */
|
||||
if (!(vmf->flags & FAULT_FLAG_WRITE) &&
|
||||
!mm_forbids_zeropage(vma->vm_mm)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue