All of lore.kernel.org
 help / color / mirror / Atom feed
* [merged] mm-use-linear_page_index-in-do_fault.patch removed from -mm tree
@ 2016-03-16 19:57 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2016-03-16 19:57 UTC (permalink / raw)
  To: matthew.r.wilcox, kirill.shutemov, mm-commits


The patch titled
     Subject: mm: use linear_page_index() in do_fault()
has been removed from the -mm tree.  Its filename was
     mm-use-linear_page_index-in-do_fault.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Matthew Wilcox <matthew.r.wilcox@intel.com>
Subject: mm: use linear_page_index() in do_fault()

do_fault() assumes that PAGE_SIZE is the same as PAGE_CACHE_SIZE.  Use
linear_page_index() to calculate pgoff in the correct units.

Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/memory.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff -puN mm/memory.c~mm-use-linear_page_index-in-do_fault mm/memory.c
--- a/mm/memory.c~mm-use-linear_page_index-in-do_fault
+++ a/mm/memory.c
@@ -3124,8 +3124,7 @@ static int do_fault(struct mm_struct *mm
 		unsigned long address, pte_t *page_table, pmd_t *pmd,
 		unsigned int flags, pte_t orig_pte)
 {
-	pgoff_t pgoff = (((address & PAGE_MASK)
-			- vma->vm_start) >> PAGE_SHIFT) + vma->vm_pgoff;
+	pgoff_t pgoff = linear_page_index(vma, address);
 
 	pte_unmap(page_table);
 	/* The VMA was not fully populated on mmap() or missing VM_DONTEXPAND */
_

Patches currently in -mm which might be from matthew.r.wilcox@intel.com are



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-03-16 19:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-16 19:57 [merged] mm-use-linear_page_index-in-do_fault.patch removed from -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.