Skip to contentSkip to conversation

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

withdrawn [email protected] 1 participant 1 message May 22, 2013 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

Subject: [withdrawn] char-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: Wed, 22 May 2013 15:31:57 -0700

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

This patch was dropped because it was withdrawn

------------------------------------------------------
From: Libin <[email protected]>
Subject: char: 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.

---

 drivers/char/mspec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/mspec.c renamed from drivers/char/mspec.c~char-use-vma_pages-to-replace-vm_end-vm_start-page_shift +1 -1
diff -puN drivers/char/mspec.c~char-use-vma_pages-to-replace-vm_end-vm_start-page_shift drivers/char/mspec.c
@@ -168,7 +168,7 @@ mspec_close(struct vm_area_struct *vma)
 	if (!atomic_dec_and_test(&vdata->refcnt))
 		return;
 
-	last_index = (vdata->vm_end - vdata->vm_start) >> PAGE_SHIFT;
+	last_index = vma_pages(vdata);
 	for (index = 0; index < last_index; index++) {
 		if (vdata->maddr[index] == 0)
 			continue;

_

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

linux-next.patch mm-use-vma_pages-to-replace-vm_end-vm_start-page_shift.patch ncpfs-use-vma_pages-to-replace-vm_end-vm_start-page_shift.patch uio-use-vma_pages-to-replace-vm_end-vm_start-page_shift.patch