https://github.com/torvalds/linux
Revision 405a7519607e7a364114896264440c0f87b325c0 authored by Hannes Reinecke on 25 July 2018, 06:34:45 UTC, committed by Christoph Hellwig on 25 July 2018, 11:14:04 UTC
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>
1 parent 5613d31
History
Tip revision: 405a7519607e7a364114896264440c0f87b325c0 authored by Hannes Reinecke on 25 July 2018, 06:34:45 UTC
nvmet: only check for filebacking on -ENOTBLK
Tip revision: 405a751
File Mode Size
.gitignore -rw-r--r-- 44 bytes
Kconfig -rw-r--r-- 3.4 KB
Makefile -rw-r--r-- 4.1 KB
blacklist.c -rw-r--r-- 4.0 KB
blacklist.h -rw-r--r-- 83 bytes
blacklist_hashes.c -rw-r--r-- 166 bytes
blacklist_nohashes.c -rw-r--r-- 122 bytes
system_certificates.S -rw-r--r-- 956 bytes
system_keyring.c -rw-r--r-- 7.5 KB

back to top