mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
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: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
parent
fed425c742
commit
44c44af2f4
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue