diff options
author | Haggai Eran <haggaie@mellanox.com> | 2014-12-11 15:04:12 (GMT) |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-12-16 02:13:35 (GMT) |
commit | 406f9e5fa9a7a60b42e676841e39f2d752266814 (patch) | |
tree | ea6b1776793ed0ae3079d9860132a9e062801b18 /drivers/infiniband/hw/qib | |
parent | 968e78dd96443e2cc963c493070574778805e76a (diff) | |
download | linux-406f9e5fa9a7a60b42e676841e39f2d752266814.tar.xz |
IB/core: Replace ib_umem's offset field with a full address
In order to allow umems that do not pin memory, we need the umem to
keep track of its region's address.
This makes the offset field redundant, and so this patch removes it.
Signed-off-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/qib')
-rw-r--r-- | drivers/infiniband/hw/qib/qib_mr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/qib/qib_mr.c b/drivers/infiniband/hw/qib/qib_mr.c index 9bbb553..a77fb4f 100644 --- a/drivers/infiniband/hw/qib/qib_mr.c +++ b/drivers/infiniband/hw/qib/qib_mr.c @@ -258,7 +258,7 @@ struct ib_mr *qib_reg_user_mr(struct ib_pd *pd, u64 start, u64 length, mr->mr.user_base = start; mr->mr.iova = virt_addr; mr->mr.length = length; - mr->mr.offset = umem->offset; + mr->mr.offset = ib_umem_offset(umem); mr->mr.access_flags = mr_access_flags; mr->umem = umem; |