]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
nvme: refactor nvme_validate_ns
authorChristoph Hellwig <hch@lst.de>
Mon, 28 Sep 2020 11:59:06 +0000 (13:59 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 7 Oct 2020 05:56:19 +0000 (07:56 +0200)
commit0a05226a3a2038b28d78101239196222d375124a
treefb17fb19372991c1f4ab38cece7814c312950eac
parentb2dc748a70c65a1b4eb1b9fceab57662cfd83e41
nvme: refactor nvme_validate_ns

Move the logic to revalidate the block_device size or remove the
namespace from the caller into nvme_validate_ns.  This removes
the return value and thus the status code translation.  Additionally
it also catches non-permanent errors from nvme_update_ns_info using
the existing logic.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
drivers/nvme/host/core.c