commit | 405a7519607e7a364114896264440c0f87b325c0 | [log] [tgz] |
---|---|---|
author | Hannes Reinecke <hare@suse.de> | Wed Jul 25 08:34:45 2018 +0200 |
committer | Christoph Hellwig <hch@lst.de> | Wed Jul 25 13:14:04 2018 +0200 |
tree | 4427e017e329c90c63354ed107dae26b17e167d1 | |
parent | 5613d31214eb4c5c04cdfce4966bb661c8b43191 [diff] |
nvmet: only check for filebacking on -ENOTBLK We only need to check for a file-backed namespace if nvmet_bdev_ns_enable() returns -ENOTBLK. For any other error it's pointless as the open() error will remain the same. Fixes: d5eff33e ("nvmet: add simple file backed ns support") Signed-off-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Signed-off-by: Christoph Hellwig <hch@lst.de>