btrfs: move clearing of EXCL_OP out of __cancel_balance

Make the clearning visible in the callers so we can pair it with the
test_and_set part.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba
2018-03-20 17:28:05 +01:00
parent 72b81abf95
commit a17c95df4c
2 changed files with 8 additions and 7 deletions

View File

@@ -4462,7 +4462,7 @@ do_balance:
* Ownership of bctl and filesystem flag BTRFS_FS_EXCL_OP
* goes to to btrfs_balance. bctl is freed in __cancel_balance,
* or, if restriper was paused all the way until unmount, in
* free_fs_info. The flag is cleared in __cancel_balance.
* free_fs_info. The flag should be cleared after __cancel_balance.
*/
need_unlock = false;