commit | 0a05226a3a2038b28d78101239196222d375124a | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Mon Sep 28 13:59:06 2020 +0200 |
committer | Christoph Hellwig <hch@lst.de> | Wed Oct 07 07:56:19 2020 +0200 |
tree | fb17fb19372991c1f4ab38cece7814c312950eac | |
parent | b2dc748a70c65a1b4eb1b9fceab57662cfd83e41 [diff] |
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>