mm-page_fault-remove-reduntant-check-for-write-access.patch removed from -mm tree
The patch titled
Subject: mm/memory.c: remove reduntant check for write access
has been removed from the -mm tree. Its filename was
mm-page_fault-remove-reduntant-check-for-write-access.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Anshuman Khandual <[email protected]>
Subject: mm/memory.c: remove reduntant check for write access
Flags argument has been copied into vmf.flags and it is not changed in between. Hence a single write access check can be used for both PUD and PMD.
Signed-off-by Anshuman Khandual <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/memory.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
mm/memory.c renamed from mm/memory.c~mm-page_fault-remove-reduntant-check-for-write-access +2 -3
@@ -3961,6 +3961,7 @@ static int __handle_mm_fault(struct vm_a .pgoff = linear_page_index(vma, address), .gfp_mask = __get_fault_gfp_mask(vma), }; +unsigned int dirty = flags &FAULT_FLAG_WRITE ;struct mm_struct *mm = vma->vm_mm;pgd_t *pgd;p4d_t *p4d;
@@ -3983,7 +3984,6 @@ static int __handle_mm_fault(struct vm_abarrier ();if (pud_trans_huge (orig_pud) ||pud_devmap (orig_pud)) { -unsigned int dirty = flags &FAULT_FLAG_WRITE ;/* NUMA case for anonymous PUDs would go here */
@@ -4020,8 +4020,7 @@ static int __handle_mm_fault(struct vm_aif (pmd_protnone (orig_pmd) &&vma_is_accessible (vma))return do_huge_pmd_numa_page (&vmf, orig_pmd); -if ((vmf.flags &FAULT_FLAG_WRITE ) && - !pmd_write (orig_pmd)) { +if (dirty && !pmd_write (orig_pmd)) { ret =wp_huge_pmd (&vmf, orig_pmd);if (!(ret &VM_FAULT_FALLBACK ))return ret;
_
Patches currently in -mm which might be from [email protected] are