media: atomisp: hmm_bo: Drop PFN code path from alloc_user_pages()
authorHans de Goede <hdegoede@redhat.com>
Sun, 21 Aug 2022 18:43:57 +0000 (20:43 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 24 Sep 2022 07:44:52 +0000 (09:44 +0200)
commit30cf7e90f0ea7adb1f125a286f2273f9faa162fe
treeb97ada4c8c48f72468adabaf0f7bc7a5db27a89e
parent3df52e584ed13a4451930d2d712580e3f2e63b6a
media: atomisp: hmm_bo: Drop PFN code path from alloc_user_pages()

alloc_user_pages() is only ever called on qbuf for USERPTR buffers which
always hits the get_user_pages_fast() path, so the pin_user_pages() path
can be removed.

Getting the vma then also is no longer necessary since that is only
done to determine which path to use.

And this also removes the only users of the mem_type struct hmm_bo member,
so remove that as well.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/include/hmm/hmm_bo.h
drivers/staging/media/atomisp/pci/hmm/hmm_bo.c