mm/gup: remove vmas parameter from pin_user_pages()
authorLorenzo Stoakes <lstoakes@gmail.com>
Wed, 17 May 2023 19:25:45 +0000 (20:25 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 9 Jun 2023 23:25:26 +0000 (16:25 -0700)
commit4c630f307455c06f99bdeca7f7a1ab5318604fe0
tree5cd11d248f2a02f378d64fc5d861a8e777cb12b7
parent34ed8d0dcd692378f1155fe27648f54f99adbfbf
mm/gup: remove vmas parameter from pin_user_pages()

We are now in a position where no caller of pin_user_pages() requires the
vmas parameter at all, so eliminate this parameter from the function and
all callers.

This clears the way to removing the vmas parameter from GUP altogether.

Link: https://lkml.kernel.org/r/195a99ae949c9f5cb589d2222b736ced96ec199a.1684350871.git.lstoakes@gmail.com
Signed-off-by: Lorenzo Stoakes <lstoakes@gmail.com>
Acked-by: David Hildenbrand <david@redhat.com>
Acked-by: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com> [qib]
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> [drivers/media]
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Janosch Frank <frankja@linux.ibm.com>
Cc: Jarkko Sakkinen <jarkko@kernel.org>
Cc: Jason Gunthorpe <jgg@nvidia.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Sean Christopherson <seanjc@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
12 files changed:
arch/powerpc/mm/book3s64/iommu_api.c
drivers/infiniband/hw/qib/qib_user_pages.c
drivers/infiniband/hw/usnic/usnic_uiom.c
drivers/infiniband/sw/siw/siw_mem.c
drivers/media/v4l2-core/videobuf-dma-sg.c
drivers/vdpa/vdpa_user/vduse_dev.c
drivers/vhost/vdpa.c
include/linux/mm.h
io_uring/rsrc.c
mm/gup.c
mm/gup_test.c
net/xdp/xdp_umem.c