aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ioctl.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2018-03-20 17:28:05 +0100
committerDavid Sterba <dsterba@suse.com>2018-05-28 18:07:24 +0200
commita17c95df4cc8ade4e0e7276a04c0cc89505c74d7 (patch)
tree8176d351a07df707917f417278ab23cda83dd711 /fs/btrfs/ioctl.c
parentbtrfs: move volume_mutex to callers of btrfs_rm_device (diff)
downloadlinux-dev-a17c95df4cc8ade4e0e7276a04c0cc89505c74d7.tar.xz
linux-dev-a17c95df4cc8ade4e0e7276a04c0cc89505c74d7.zip
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>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r--fs/btrfs/ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index 937afa8e1613..f0d0aef3826a 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -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;