Jason Gunthorpe 27b7fb1ab7 RDMA/mlx5: Fix MR npages calculation for IB_ACCESS_HUGETLB
When ODP is enabled with IB_ACCESS_HUGETLB then the required pages
should be calculated based on the extent of the MR, which is rounded
to the nearest huge page alignment.

Fixes: d2183c6f1958 ("RDMA/umem: Move page_shift from ib_umem to ib_odp_umem")
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Link: https://lore.kernel.org/r/20190815083834.9245-5-leon@kernel.org
Signed-off-by: Doug Ledford <dledford@redhat.com>
2019-08-20 13:44:43 -04:00
..
2018-12-12 07:40:16 -07:00
2019-05-03 10:56:56 -03:00
2019-06-28 21:18:23 -03:00
2018-12-12 07:40:16 -07:00
2019-04-25 12:27:11 -03:00
2019-06-28 21:18:23 -03:00
2019-05-09 09:02:46 -07:00
2018-12-12 07:40:16 -07:00
2019-06-28 21:18:23 -03:00
2019-06-28 21:18:23 -03:00
2019-04-25 12:27:11 -03:00