Skip to content

Commit

Permalink
Btrfs: do not return EINVAL instead of ENOMEM from open_ctree()
Browse files Browse the repository at this point in the history
When bailing from open_ctree() err is returned, not ret.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
  • Loading branch information
Ilya Dryomov authored and Chris Mason committed Jul 23, 2012
1 parent 02db084 commit fed425c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/disk-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit fed425c

Please sign in to comment.