diff options
author | David Sterba <dsterba@suse.com> | 2018-03-20 20:23:09 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-05-28 18:07:25 +0200 |
commit | 149196a2aea682ec9d7d50ec00d779a380deb7aa (patch) | |
tree | e5dba952b8880f688563a3ca3299f77ba12979e7 /fs/btrfs/ioctl.c | |
parent | btrfs: add sanity check when resuming balance after mount (diff) | |
download | linux-149196a2aea682ec9d7d50ec00d779a380deb7aa.tar.xz linux-149196a2aea682ec9d7d50ec00d779a380deb7aa.zip |
btrfs: cleanup helpers that reset balance state
The function __cancel_balance name is confusing with the cancel
operation of balance and it really resets the state of balance back to
zero. The unset_balance_control helper is called only from one place and
simple enough to be inlined.
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index f0d0aef3826a..6c759f2d1301 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -4459,10 +4459,10 @@ locked: 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 should be cleared after __cancel_balance. + * Ownership of bctl and filesystem flag BTRFS_FS_EXCL_OP goes to + * btrfs_balance. bctl is freed in reset_balance_state, or, if + * restriper was paused all the way until unmount, in free_fs_info. + * The flag should be cleared after reset_balance_state. */ need_unlock = false; |