mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-05 19:31:57 -04:00
Revert "mm: protect SPF handler against anon_vma changes"
This reverts commit ff6cfddf7a.
Bug: 128240262
Change-Id: I317785d46d335aab974e194e5ea0d744513baecd
Signed-off-by: Minchan Kim <minchan@google.com>
[dereference23: Forward port to msm-5.4]
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
This commit is contained in:
parent
6d707879c3
commit
a43fdd54d4
1 changed files with 0 additions and 4 deletions
|
|
@ -410,9 +410,7 @@ void free_pgtables(struct mmu_gather *tlb, struct vm_area_struct *vma,
|
|||
* Hide vma from rmap and truncate_pagecache before freeing
|
||||
* pgtables
|
||||
*/
|
||||
vm_write_begin(vma);
|
||||
unlink_anon_vmas(vma);
|
||||
vm_write_end(vma);
|
||||
unlink_file_vma(vma);
|
||||
|
||||
if (is_vm_hugetlb_page(vma)) {
|
||||
|
|
@ -426,9 +424,7 @@ void free_pgtables(struct mmu_gather *tlb, struct vm_area_struct *vma,
|
|||
&& !is_vm_hugetlb_page(next)) {
|
||||
vma = next;
|
||||
next = vma->vm_next;
|
||||
vm_write_begin(vma);
|
||||
unlink_anon_vmas(vma);
|
||||
vm_write_end(vma);
|
||||
unlink_file_vma(vma);
|
||||
}
|
||||
free_pgd_range(tlb, addr, vma->vm_end,
|
||||
|
|
|
|||
Loading…
Reference in a new issue