Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 44c44af2 authored by Ilya Dryomov's avatar Ilya Dryomov Committed by Chris Mason
Browse files

Btrfs: do not ignore errors from btrfs_cleanup_fs_roots() when mounting



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: default avatarIlya Dryomov <idryomov@gmail.com>
parent fed425c7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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) {