RDMA/umem: Make ib_umem_odp into a sub structure of ib_umem
authorJason Gunthorpe <jgg@mellanox.com>
Sun, 16 Sep 2018 17:48:05 +0000 (20:48 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 21 Sep 2018 15:54:46 +0000 (11:54 -0400)
commit41b4deeaa123e62e1037af7a0be547af2e0e05f1
treef687c58ea0c87dccf77ebc3b612e24c5897de452
parentb5231b019d76521dd8c59a54c174770ec92c767c
RDMA/umem: Make ib_umem_odp into a sub structure of ib_umem

These two structures are linked together, use the container_of pattern
instead of a double allocation to make the code simpler and easier to
follow.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/umem.c
drivers/infiniband/core/umem_odp.c
drivers/infiniband/hw/mlx5/odp.c
include/rdma/ib_umem_odp.h