summaryrefslogtreecommitdiffstats
path: root/include/rdma/ib_umem.h
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2018-09-16 19:48:06 +0200
committerDoug Ledford <dledford@redhat.com>2018-09-21 17:54:46 +0200
commit597ecc5a095406a668e53ab330495ddb65327f77 (patch)
treedb33ff15c4be7bea3f1ab47702c951ecae189509 /include/rdma/ib_umem.h
parentRDMA/umem: Make ib_umem_odp into a sub structure of ib_umem (diff)
downloadlinux-597ecc5a095406a668e53ab330495ddb65327f77.tar.xz
linux-597ecc5a095406a668e53ab330495ddb65327f77.zip
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>
Diffstat (limited to 'include/rdma/ib_umem.h')
-rw-r--r--include/rdma/ib_umem.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/rdma/ib_umem.h b/include/rdma/ib_umem.h
index e1c00b2ead19..5d3755ec5afa 100644
--- a/include/rdma/ib_umem.h
+++ b/include/rdma/ib_umem.h
@@ -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;