The patch titled Subject: samples/vfio-mdev/mdpy: use remap_vmalloc_range has been added to the -mm tree. Its filename is samples-vfio-mdev-mdpy-use-remap_vmalloc_range.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/samples-vfio-mdev-mdpy-use-remap_vmalloc_range.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/samples-vfio-mdev-mdpy-use-remap_vmalloc_range.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: Christoph Hellwig <hch@xxxxxx> Subject: samples/vfio-mdev/mdpy: use remap_vmalloc_range Patch series "remap_vmalloc_range cleanups". This series removes an open coded instance of remap_vmalloc_range and removes the unused remap_vmalloc_range_partial export. This patch (of 2): Use remap_vmalloc_range instead of open coding it using remap_vmalloc_range_partial. Link: https://lkml.kernel.org/r/20210301082235.932968-1-hch@xxxxxx Link: https://lkml.kernel.org/r/20210301082235.932968-2-hch@xxxxxx Signed-off-by: Christoph Hellwig <hch@xxxxxx> Cc: Kirti Wankhede <kwankhede@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- samples/vfio-mdev/mdpy.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- a/samples/vfio-mdev/mdpy.c~samples-vfio-mdev-mdpy-use-remap_vmalloc_range +++ a/samples/vfio-mdev/mdpy.c @@ -417,9 +417,7 @@ static int mdpy_mmap(struct mdev_device if ((vma->vm_flags & VM_SHARED) == 0) return -EINVAL; - return remap_vmalloc_range_partial(vma, vma->vm_start, - mdev_state->memblk, 0, - vma->vm_end - vma->vm_start); + return remap_vmalloc_range(vma, mdev_state->memblk, 0); } static int mdpy_get_region_info(struct mdev_device *mdev, _ Patches currently in -mm which might be from hch@xxxxxx are samples-vfio-mdev-mdpy-use-remap_vmalloc_range.patch mm-unexport-remap_vmalloc_range_partial.patch