summaryrefslogtreecommitdiff
path: root/drivers/infiniband/core/umem.c
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2018-09-16 20:48:04 +0300
committerDoug Ledford <dledford@redhat.com>2018-09-21 11:54:46 -0400
commitb5231b019d76521dd8c59a54c174770ec92c767c (patch)
treeeffa32fdc05085c5453288dad3a0aa2458c4e972 /drivers/infiniband/core/umem.c
parentece8ea7bfac053cf27c24e1a767b796a4db2fbd7 (diff)
RDMA/umem: Use ib_umem_odp in all function signatures connected to ODP
All of these functions already require the ODP version of the umem struct, make this very clear by having the signature require it. This paves the way to using the container_of() pattern to link umem_odp and umem together. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/core/umem.c')
-rw-r--r--drivers/infiniband/core/umem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/umem.c b/drivers/infiniband/core/umem.c
index c32a3e27a896..971d92ddea8f 100644
--- a/drivers/infiniband/core/umem.c
+++ b/drivers/infiniband/core/umem.c
@@ -262,7 +262,7 @@ void ib_umem_release(struct ib_umem *umem)
struct ib_ucontext *context = umem->context;
if (umem->odp_data) {
- ib_umem_odp_release(umem);
+ ib_umem_odp_release(to_ib_umem_odp(umem));
return;
}