Skip to contentSkip to conversation

mm-use-vma_pages-to-replace-vm_end-vm_start-page_shift.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jul 8, 2013

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: [merged] mm-use-vma_pages-to-replace-vm_end-vm_start-page_shift.patch removed from -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Mon, 08 Jul 2013 12:24:03 -0700

The patch titled
Subject: mm: use vma_pages() to replace (vm_end - vm_start) >> PAGE_SHIFT
has been removed from the -mm tree. Its filename was
mm-use-vma_pages-to-replace-vm_end-vm_start-page_shift.patch

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

------------------------------------------------------
From: Libin <[email protected]>
Subject: mm: use vma_pages() to replace (vm_end - vm_start) >> PAGE_SHIFT

(*->vm_end - *->vm_start) >> PAGE_SHIFT operation is implemented as a inline funcion vma_pages() in linux/mm.h, so using it.

---

 mm/memory.c |    2 +-
 mm/mmap.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
mm/memory.c renamed from mm/memory.c~mm-use-vma_pages-to-replace-vm_end-vm_start-page_shift +1 -1
diff -puN mm/memory.c~mm-use-vma_pages-to-replace-vm_end-vm_start-page_shift mm/memory.c
@@ -2904,7 +2904,7 @@ static inline void unmap_mapping_range_t
 			details->first_index, details->last_index) {
 
 		vba = vma->vm_pgoff;
-		vea = vba + ((vma->vm_end - vma->vm_start) >> PAGE_SHIFT) - 1;
+		vea = vba + vma_pages(vma) - 1;
 		/* Assume for now that PAGE_CACHE_SHIFT == PAGE_SHIFT */
 		zba = details->first_index;
 		if (zba < vba)
mm/mmap.c renamed from mm/mmap.c~mm-use-vma_pages-to-replace-vm_end-vm_start-page_shift +1 -1
diff -puN mm/mmap.c~mm-use-vma_pages-to-replace-vm_end-vm_start-page_shift mm/mmap.c
@@ -955,7 +955,7 @@ can_vma_merge_after(struct vm_area_struc
 	if (is_mergeable_vma(vma, file, vm_flags) &&
 	    is_mergeable_anon_vma(anon_vma, vma->anon_vma, vma)) {
 		pgoff_t vm_pglen;
-		vm_pglen = (vma->vm_end - vma->vm_start) >> PAGE_SHIFT;
+		vm_pglen = vma_pages(vma);
 		if (vma->vm_pgoff + vm_pglen == vm_pgoff)
 			return 1;
 	}

_

Patches currently in -mm which might be from [email protected] are

origin.patch