]> git.hungrycats.org Git - linux/commitdiff
Revert "btrfs: relocation: Check cancel request after each extent found"
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Mon, 30 Mar 2020 16:42:11 +0000 (12:42 -0400)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Mon, 30 Mar 2020 16:42:11 +0000 (12:42 -0400)
This reverts commit 400faee53af2f9f1d0d4a0e0f92ea3d08fe53d59.

fs/btrfs/relocation.c

index 1e557c38bef251434ab6f663ef3401f1ee444d64..c3fe15dfe13cf83f5b0fdbe86ee280e9d72396e0 100644 (file)
@@ -4035,10 +4035,6 @@ restart:
                                break;
                        }
                }
-               if (should_cancel_balance(fs_info)) {
-                       err = -ECANCELED;
-                       break;
-               }
        }
        if (trans && progress && err == -ENOSPC) {
                ret = btrfs_force_chunk_alloc(trans, rc->block_group->flags);