]> git.baikalelectronics.ru Git - kernel.git/commit
IB/ipath: Change get_user_pages() usage to always NULL vmas
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Mon, 15 Sep 2014 15:43:06 +0000 (11:43 -0400)
committerRoland Dreier <roland@purestorage.com>
Fri, 19 Sep 2014 17:03:11 +0000 (10:03 -0700)
commitcd7708a28d4f22695d16b793c07626c9b104f6f3
treef73f21332fc1617ba6297e67e5f7fca3f14195d4
parentc7f7e50ad9473f509b2a4619433a13f568a7f1c3
IB/ipath: Change get_user_pages() usage to always NULL vmas

The static helper routine, __ipath_get_user_pages(), accepts a vma
arg, but current use always passes NULL.

This has caused some confusion associated with the correct use of this
argument, but since the current use case doesn't require the
flexiblity, the best thing to do is to simplfy the code to always pass
NULL to get_user_pages().

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/ipath/ipath_user_pages.c