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
Kconfig -rw-r--r-- 61.2 KB
Makefile -rw-r--r-- 1.2 KB
calibrate.c -rw-r--r-- 8.6 KB
do_mounts.c -rw-r--r-- 14.6 KB
do_mounts.h -rw-r--r-- 1.1 KB
do_mounts_initrd.c -rw-r--r-- 3.5 KB
do_mounts_md.c -rw-r--r-- 8.2 KB
do_mounts_rd.c -rw-r--r-- 8.4 KB
init_task.c -rw-r--r-- 5.1 KB
initramfs.c -rw-r--r-- 14.1 KB
main.c -rw-r--r-- 28.4 KB
noinitramfs.c -rw-r--r-- 1.5 KB
version.c -rw-r--r-- 1.2 KB

back to top