RDMA/rw: use DIV_ROUND_UP to calculate nr_ops
authorMax Gurtovoy <maxg@mellanox.com>
Mon, 13 Apr 2020 13:39:05 +0000 (16:39 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 15 Apr 2020 14:34:49 +0000 (11:34 -0300)
commit95a776e8a6282ac19051655c55124e711318ae6e
tree415821f60a0fd5b0d80af6b95d82ab54d7349764
parentdd302ee41e6ed204f8d9534d511edc72b5ce5e53
RDMA/rw: use DIV_ROUND_UP to calculate nr_ops

Don't open-code DIV_ROUND_UP() kernel macro.

Link: https://lore.kernel.org/r/20200413133905.933343-1-leon@kernel.org
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/rw.c