userfaultfd-non-cooperative-selftest-add-ufd-parameter-to-copy_page.patch removed from -mm tree
The patch titled
Subject: userfaultfd: non-cooperative: selftest: add ufd parameter to copy_page
has been removed from the -mm tree. Its filename was
userfaultfd-non-cooperative-selftest-add-ufd-parameter-to-copy_page.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Mike Rapoport <[email protected]>
Subject: userfaultfd: non-cooperative: selftest: add ufd parameter to copy_page
With future addition of event tests, copy_page will be called with different userfault file descriptors
---
tools/testing/selftests/vm/userfaultfd.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
tools/testing/selftests/vm/userfaultfd.c renamed from tools/testing/selftests/vm/userfaultfd.c~userfaultfd-non-cooperative-selftest-add-ufd-parameter-to-copy_page +5 -5
@@ -317,7 +317,7 @@ static void *locking_thread(void *arg)return NULL ; } -static int copy_page (unsigned long offset) +static int copy_page (int ufd,unsigned long offset) {struct uffdio_copy uffdio_copy;
@@ -329,7 +329,7 @@ static int copy_page(unsigned long offse uffdio_copy.len = page_size; uffdio_copy.mode =0 ; uffdio_copy.copy =0 ; -if (ioctl (uffd,UFFDIO_COPY , &uffdio_copy)) { +if (ioctl (ufd,UFFDIO_COPY , &uffdio_copy)) {/* real retval in ufdio_copy.copy */ if (uffdio_copy.copy != -EEXIST ) fprintf(stderr, "UFFDIO_COPY error %Ld\n",
@@ -386,7 +386,7 @@ static void *uffd_poll_thread(void *arg) offset = (char *)(unsigned long )msg.arg.pagefault.address - area_dst; offset &= ~(page_size-1 ); -if (copy_page (offset)) +if (copy_page (uffd, offset)) userfaults++; }return (void *)userfaults;
@@ -424,7 +424,7 @@ static void *uffd_read_thread(void *arg) offset = (char *)(unsigned long )msg.arg.pagefault.address - area_dst; offset &= ~(page_size-1 ); -if (copy_page (offset)) +if (copy_page (uffd, offset)) (*this_cpu_userfaults)++; }return (void *)NULL ;
@@ -438,7 +438,7 @@ static void *background_thread(void *argfor (page_nr = cpu * nr_pages_per_cpu; page_nr < (cpu+1 ) * nr_pages_per_cpu; page_nr++) -copy_page (page_nr * page_size); +copy_page (uffd, page_nr * page_size);return NULL ; }
_
Patches currently in -mm which might be from [email protected] are
userfaultfd-non-cooperative-rename-event_madvdontneed-to-event_remove.patch userfaultfd-non-cooperative-add-madvise-event-for-madv_remove-request.patch userfaultfd-non-cooperative-selftest-enable-remove-event-test-for-shmem.patch mm-call-vm_munmap-in-munmap-syscall-instead-of-using-open-coded-version.patch userfaultfd-non-cooperative-add-event-for-memory-unmaps.patch userfaultfd-non-cooperative-add-event-for-exit-notification.patch userfaultfd-non-cooperative-add-event-for-exit-notification-fix.patch userfaultfd-mcopy_atomic-return-enoent-when-no-compatible-vma-found.patch userfaultfd-mcopy_atomic-return-enoent-when-no-compatible-vma-found-fix.patch userfaultfd_copy-return-enospc-in-case-mm-has-gone.patch userfaultfd-documentation-update.patch