nvme: add nvme_get_ns helper
authorKanchan Joshi <joshi.k@samsung.com>
Tue, 27 Apr 2021 06:47:46 +0000 (12:17 +0530)
committerChristoph Hellwig <hch@lst.de>
Tue, 4 May 2021 07:35:48 +0000 (09:35 +0200)
commit4c74d1f80381996027bacc4f6c554948ef9bf374
tree5b54300b522e2cae1d173732a160d2f3d022f66f
parent48145b62563a9ae1ad631d6b576c6b9a798fcbec
nvme: add nvme_get_ns helper

Add a helper to avoid opencoding ns->kref increment.
Decrement is already done via nvme_put_ns helper.

Signed-off-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c