RDMA/umem: Get rid of struct ib_umem.odp_data

This no longer has any use, we can use container_of to get to the
umem_odp, and a simple flag to indicate if this is an odp MR. Remove the
few remaining references to it.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
Jason Gunthorpe
2018-09-16 20:48:06 +03:00
committed by Doug Ledford
parent 41b4deeaa1
commit 597ecc5a09
6 changed files with 27 additions and 26 deletions

View File

@@ -46,10 +46,10 @@ struct ib_umem {
size_t length;
unsigned long address;
int page_shift;
int writable;
int hugetlb;
u32 writable : 1;
u32 hugetlb : 1;
u32 is_odp : 1;
struct work_struct work;
struct ib_umem_odp *odp_data;
struct sg_table sg_head;
int nmap;
int npages;