]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/umem: Move page_shift from ib_umem to ib_odp_umem
authorJason Gunthorpe <jgg@mellanox.com>
Mon, 20 May 2019 06:05:25 +0000 (09:05 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 21 May 2019 18:23:24 +0000 (15:23 -0300)
commit74627516f55ced7272a118908cc7325f779b7fdd
treec7e1d369b4747816879c5cc694049c791555250f
parent38b10b75e8d0bab514079f2881f6b8713981cda9
RDMA/umem: Move page_shift from ib_umem to ib_odp_umem

This value has always been set to PAGE_SHIFT in the core code, the only
thing that does differently was the ODP path. Move the value into the ODP
struct and still use it for ODP, but change all the non-ODP things to just
use PAGE_SHIFT/PAGE_SIZE/PAGE_MASK directly.

Reviewed-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
12 files changed:
drivers/infiniband/core/umem.c
drivers/infiniband/core/umem_odp.c
drivers/infiniband/hw/hns/hns_roce_cq.c
drivers/infiniband/hw/hns/hns_roce_srq.c
drivers/infiniband/hw/mlx4/mr.c
drivers/infiniband/hw/mlx4/srq.c
drivers/infiniband/hw/mlx5/mem.c
drivers/infiniband/hw/mlx5/mr.c
drivers/infiniband/hw/mlx5/odp.c
drivers/infiniband/hw/nes/nes_verbs.c
include/rdma/ib_umem.h
include/rdma/ib_umem_odp.h