On 02/09/2020 3:43, Jason Gunthorpe wrote: > For the calls linked to mlx4_ib_umem_calc_optimal_mtt_size() compute the > number of DMA pages directly based on the returned page_shift. This was > just being used as a weird default if the algorithm hits the lower limit. > > All other places are just using it with PAGE_SIZE. > > As this is the last call site, remove ib_umem_num_pages(). > > Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxx> The subject line should be fixed to mlx4.