samples/vfio-mdev/mdpy: use remap_vmalloc_range
authorChristoph Hellwig <hch@lst.de>
Fri, 30 Apr 2021 05:58:01 +0000 (22:58 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 30 Apr 2021 18:20:39 +0000 (11:20 -0700)
commit8c2acfe8c1df1c8baacbeee4c519683ae3f3d722
treecf44401c34a2b54afd5e51060b4ae6004a2dbdf8
parent2284f47fe9fe2ed2ef619e5474e155cfeeebd569
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@lst.de
Link: https://lkml.kernel.org/r/20210301082235.932968-2-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: Kirti Wankhede <kwankhede@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
samples/vfio-mdev/mdpy.c