Btrfs: fix error return code in btrfs_init_test_fs()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 17 Jun 2016 17:20:40 +0000 (17:20 +0000)
committerChris Mason <clm@fb.com>
Thu, 23 Jun 2016 17:44:39 +0000 (10:44 -0700)
commitb18edd65007b4007191a0175f7392007e870473c
tree72ebad03f725910cff12517d43f9fc5e072d78c8
parent26a90670c847d3399479996e9aa5ff5215105729
Btrfs: fix error return code in btrfs_init_test_fs()

Fix to return a negative error code from the kern_mount() error handling
case instead of 0(ret is set to 0 by register_filesystem), as done
elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/tests/btrfs-tests.c