Skip to content

Commit

Permalink
Btrfs: do not ignore errors from btrfs_cleanup_fs_roots() when mounting
Browse files Browse the repository at this point in the history
There used to be a BUG_ON(ret) there before EH patch (79787ea) went in.
Bail out with EINVAL.

Cc: David Sterba <dsterba@suse.cz>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
  • Loading branch information
Ilya Dryomov authored and Chris Mason committed Jul 23, 2012
1 parent fed425c commit 44c44af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/btrfs/disk-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -2466,8 +2466,8 @@ int open_ctree(struct super_block *sb,

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) {
Expand Down

0 comments on commit 44c44af

Please sign in to comment.