RDMA/cma: Rename cma_device ref/deref helpers to to get/put
authorParav Pandit <parav@mellanox.com>
Sun, 26 Jan 2020 14:26:51 +0000 (16:26 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 11 Feb 2020 18:00:40 +0000 (14:00 -0400)
commite368d23f57f6a08341d35c44255f2d8e7695152b
tree958f379b12b2f0d336c978f2ab5a554e7f01b720
parentbe439912e7c2e3e78ebd087932c165a83bdca6b5
RDMA/cma: Rename cma_device ref/deref helpers to to get/put

Helper functions which increment/decrement reference count of a
structure read better when they are named with the get/put suffix.

Hence, rename cma_ref/deref_id() to cma_id_get/put().  Also use
cma_get_id() wrapper to find the balancing put() calls.

Link: https://lore.kernel.org/r/20200126142652.104803-7-leon@kernel.org
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cma.c