btrfs: Add a test for dead looping balance after balance cancel
authorQu Wenruo <wqu@suse.com>
Thu, 21 May 2020 00:52:15 +0000 (08:52 +0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 24 May 2020 16:29:08 +0000 (00:29 +0800)
commitb77be1c0ca38bba1755581a93c15b329edda4050
treea695f96a2ac56a055d433b17e6e15b70e6e57401
parenta297366f56213aa29790419e8edda47edb8347ba
btrfs: Add a test for dead looping balance after balance cancel

Test if canceling a running balance can cause later balance to dead
loop.

The fix is titled "btrfs: relocation: Clear the DEAD_RELOC_TREE bit for
 orphan roots to prevent runaway balance".

Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/btrfs/213 [new file with mode: 0755]
tests/btrfs/213.out [new file with mode: 0644]
tests/btrfs/group