+ mm-rename-__do_fault-do_fault.patch added to -mm tree
Subsystems (2)
[email protected]
maintainerSubject: + mm-rename-__do_fault-do_fault.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 10 Feb 2014 14:54:06 -0800
The patch titled
Subject: mm: rename __do_fault() -> do_fault()
has been added to the -mm tree. Its filename is
mm-rename-__do_fault-do_fault.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/mm-rename-__do_fault-do_fault.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/mm-rename-__do_fault-do_fault.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
From: "Kirill A. Shutemov" <[email protected]>
Subject: mm: rename __do_fault() -> do_fault()
Current __do_fault() is awful and unmaintainable. These patches try to sort it out by split __do_fault() into three destinct codepaths:
- to handle read page fault;
- to handle write page fault to private mappings;
- to handle write page fault to shared mappings;
I also found page refcount leak in PageHWPoison() path of __do_fault().
This patch (of 7):
do_fault() is unused: no reason for underscores.
---
mm/memory.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
mm/memory.c renamed from mm/memory.c~mm-rename-__do_fault-do_fault +5 -5
@@ -2748,7 +2748,7 @@ reuse:* bit after it clear all dirty ptes, but before a racing * do_wp_page installs a dirty pte. * -* __do_fault is protected similarly. +* do_fault is protected similarly. */ if (!page_mkwrite) {wait_on_page_locked (dirty_page);
@@ -3287,7 +3287,7 @@ oom: }/* -* __do_fault() tries to create a new page mapping. It aggressively +* do_fault() tries to create a new page mapping. It aggressively * tries to share with existing pages, but makes a separate copy if * the FAULT_FLAG_WRITE is set in the flags parameter in order to avoid * the next page fault.
@@ -3299,7 +3299,7 @@ oom:* but allow concurrent faults), and pte neither mapped nor locked. * We return with mmap_sem still held, but pte unmapped and unlocked. */ -static int __do_fault (struct mm_struct *mm,struct vm_area_struct *vma, +static int do_fault (struct mm_struct *mm,struct vm_area_struct *vma,unsigned long address,pmd_t *pmd,pgoff_t pgoff,unsigned int flags,pte_t orig_pte) {
@@ -3496,7 +3496,7 @@ static int do_linear_fault(struct mm_str - vma->vm_start) >> PAGE_SHIFT) + vma->vm_pgoff;pte_unmap (page_table); -return __do_fault (mm, vma, address, pmd, pgoff, flags, orig_pte); +return do_fault (mm, vma, address, pmd, pgoff, flags, orig_pte); }/*
@@ -3528,7 +3528,7 @@ static int do_nonlinear_fault(struct mm_ } pgoff =pte_to_pgoff (orig_pte); -return __do_fault (mm, vma, address, pmd, pgoff, flags, orig_pte); +return do_fault (mm, vma, address, pmd, pgoff, flags, orig_pte); } static int numa_migrate_prep(struct page *page, struct vm_area_struct *vma,
_
Patches currently in -mm which might be from [email protected] are
pagewalk-update-page-table-walker-core.patch pagewalk-add-walk_page_vma.patch smaps-redefine-callback-functions-for-page-table-walker.patch clear_refs-redefine-callback-functions-for-page-table-walker.patch pagemap-redefine-callback-functions-for-page-table-walker.patch numa_maps-redefine-callback-functions-for-page-table-walker.patch memcg-redefine-callback-functions-for-page-table-walker.patch madvise-redefine-callback-functions-for-page-table-walker.patch arch-powerpc-mm-subpage-protc-use-walk_page_vma-instead-of-walk_page_range.patch pagewalk-remove-argument-hmask-from-hugetlb_entry.patch mempolicy-apply-page-table-walker-on-queue_pages_range.patch mm-hwpoison-release-page-on-pagehwpoison-in-__do_fault.patch mm-rename-__do_fault-do_fault.patch mm-do_fault-extract-to-call-vm_ops-do_fault-to-separate-function.patch mm-introduce-do_read_fault.patch
mm-introduce-do_cow_fault.patch mm-introduce-do_shared_fault-and-drop-do_fault.patch mm-consolidate-code-to-call-vm_ops-page_mkwrite.patch mm-consolidate-code-to-setup-pte.patch