OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fed425c
)
Btrfs: do not ignore errors from btrfs_cleanup_fs_roots() when mounting
author
Ilya Dryomov
<idryomov@gmail.com>
Fri, 22 Jun 2012 18:14:13 +0000
(12:14 -0600)
committer
Chris Mason
<chris.mason@fusionio.com>
Mon, 23 Jul 2012 20:27:53 +0000
(16:27 -0400)
There used to be a BUG_ON(ret) there before EH patch (
79787eaa
) went in.
Bail out with EINVAL.
Cc: David Sterba <dsterba@suse.cz>
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
fd216d9
..
dd6676b
100644
(file)
--- a/
fs/btrfs/disk-io.c
+++ b/
fs/btrfs/disk-io.c
@@
-2466,8
+2466,8
@@
retry_root_backup:
if (!(sb->s_flags & MS_RDONLY)) {
ret = btrfs_cleanup_fs_roots(fs_info);
- if (ret)
{
- }
+ if (ret)
+ goto fail_trans_kthread;
ret = btrfs_recover_relocation(tree_root);
if (ret < 0) {