diff options
author | Jason Gunthorpe <jgg@mellanox.com> | 2018-09-16 19:48:04 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2018-09-21 17:54:46 +0200 |
commit | b5231b019d76521dd8c59a54c174770ec92c767c (patch) | |
tree | effa32fdc05085c5453288dad3a0aa2458c4e972 /drivers/infiniband/core/umem.c | |
parent | RDMA/usnic: Do not use ucontext->tgid (diff) | |
download | linux-b5231b019d76521dd8c59a54c174770ec92c767c.tar.xz linux-b5231b019d76521dd8c59a54c174770ec92c767c.zip |
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.c | 2 |
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; } |