Commit fed425c7 authored by Ilya Dryomov's avatar Ilya Dryomov Committed by Chris Mason

Btrfs: do not return EINVAL instead of ENOMEM from open_ctree()

When bailing from open_ctree() err is returned, not ret.
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent 02db0844
......@@ -2244,7 +2244,7 @@ int open_ctree(struct super_block *sb,
ret |= btrfs_start_workers(&fs_info->caching_workers);
ret |= btrfs_start_workers(&fs_info->readahead_workers);
if (ret) {
ret = -ENOMEM;
err = -ENOMEM;
goto fail_sb_buffer;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment