RDMA/mlx5: Remove mlx5_ib_mr->npages
authorJason Gunthorpe <jgg@nvidia.com>
Mon, 26 Oct 2020 13:19:32 +0000 (15:19 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 2 Nov 2020 18:52:26 +0000 (14:52 -0400)
commit1c3d247eee746016f268a3e7f6b4a11cfa205e8e
tree0c9f7bcb1020413b7e390f5a595c787950e9db72
parentfc3325701a6353594083f08e297d4c1965c601aa
RDMA/mlx5: Remove mlx5_ib_mr->npages

This is the same value as ib_umem_num_pages(mr->umem), use that instead.

Link: https://lore.kernel.org/r/20201026131936.1335664-4-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/mr.c