]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: lift the check for an unallocated namespace into nvme_identify_ns
authorChristoph Hellwig <hch@lst.de>
Mon, 28 Sep 2020 10:33:19 +0000 (12:33 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 7 Oct 2020 05:56:18 +0000 (07:56 +0200)
commitdc0e3425ad067f4e391bb0d90677ec1e81f48196
tree35ff1c4c04b746dcd2e36c9d6475f27ff1aab633
parentbd246d5002cf874f4112308650218569b6b8077b
nvme: lift the check for an unallocated namespace into nvme_identify_ns

Move the check from the two callers into the common helper.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/host/core.c