projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02db084
)
Btrfs: do not return EINVAL instead of ENOMEM from open_ctree()
author
Ilya Dryomov
<idryomov@gmail.com>
Fri, 22 Jun 2012 18:13:01 +0000
(12:13 -0600)
committer
Chris Mason
<chris.mason@fusionio.com>
Mon, 23 Jul 2012 20:27:52 +0000
(16:27 -0400)
When bailing from open_ctree() err is returned, not ret.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/btrfs/disk-io.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/disk-io.c
b/fs/btrfs/disk-io.c
index
2936ca4
..
fd216d9
100644
(file)
--- 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;
}