Przeglądaj źródła

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>
Ilya Dryomov 13 lat temu
rodzic
commit
44c44af2f4
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      fs/btrfs/disk-io.c

+ 2 - 2
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) {