+ android-binder-replace-vm_insert_page-with-vmf_insert_page.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: drivers/android/binder_alloc.c: replace vm_insert_page with vmf_insert_page
has been added to the -mm tree.  Its filename is
     android-binder-replace-vm_insert_page-with-vmf_insert_page.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/android-binder-replace-vm_insert_page-with-vmf_insert_page.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/android-binder-replace-vm_insert_page-with-vmf_insert_page.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/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Souptick Joarder <jrdr.linux@xxxxxxxxx>
Subject: drivers/android/binder_alloc.c: replace vm_insert_page with vmf_insert_page

There is a plan to replace vm_insert_page with new API vmf_insert_page. 
As part of it, converting vm_insert_page to use vmf_insert_page.

Link: http://lkml.kernel.org/r/20180920172528.GA22480@jordon-HP-15-Notebook-PC
Signed-off-by: Souptick Joarder <jrdr.linux@xxxxxxxxx>
Cc: Matthew Wilcox <willy@xxxxxxxxxxxxx>
Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
Cc: Arve Hjønnevåg <arve@xxxxxxxxxxx>
Cc: Todd Kjos <tkjos@xxxxxxxxxxx>
Cc: Martijn Coenen <maco@xxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---


diff -puN drivers/android/binder_alloc.c~android-binder-replace-vm_insert_page-with-vmf_insert_page drivers/android/binder_alloc.c
--- a/drivers/android/binder_alloc.c~android-binder-replace-vm_insert_page-with-vmf_insert_page
+++ a/drivers/android/binder_alloc.c
@@ -238,6 +238,7 @@ static int binder_update_page_range(stru
 		int ret;
 		bool on_lru;
 		size_t index;
+		vm_fault_t vmf;
 
 		index = (page_addr - alloc->buffer) / PAGE_SIZE;
 		page = &alloc->pages[index];
@@ -279,8 +280,8 @@ static int binder_update_page_range(stru
 		}
 		user_page_addr =
 			(uintptr_t)page_addr + alloc->user_buffer_offset;
-		ret = vm_insert_page(vma, user_page_addr, page[0].page_ptr);
-		if (ret) {
+		vmf = vmf_insert_page(vma, user_page_addr, page[0].page_ptr);
+		if (vmf != VM_FAULT_NOPAGE) {
 			pr_err("%d: binder_alloc_buf failed to map page at %lx in userspace\n",
 			       alloc->pid, user_page_addr);
 			goto err_vm_insert_page_failed;
_

Patches currently in -mm which might be from jrdr.linux@xxxxxxxxx are

fs-iomap-change-return-type-to-vm_fault_t.patch
mm-conveted-to-use-vm_fault_t.patch
fs-proc-vmcorec-convert-to-use-vmf_error.patch
android-binder-replace-vm_insert_page-with-vmf_insert_page.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux