From: Ilya Dryomov Date: Fri, 22 Jun 2012 18:13:01 +0000 (-0600) Subject: Btrfs: do not return EINVAL instead of ENOMEM from open_ctree() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fed425c742cb1262ce90a41f2d3d211bac099533;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Btrfs: do not return EINVAL instead of ENOMEM from open_ctree() When bailing from open_ctree() err is returned, not ret. Signed-off-by: Ilya Dryomov --- diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 2936ca49b3b4..fd216d9369fa 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -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; }