mlx4: allocate just enough pages instead of always 4 pages