btrfs: cleanup helpers that reset balance state
authorDavid Sterba <dsterba@suse.com>
Tue, 20 Mar 2018 19:23:09 +0000 (20:23 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 May 2018 16:07:25 +0000 (18:07 +0200)
commit149196a2aea682ec9d7d50ec00d779a380deb7aa
treee5dba952b8880f688563a3ca3299f77ba12979e7
parenteee95e3fb0c3bcda4e85fc219964f2f69a218f03
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>
fs/btrfs/ioctl.c
fs/btrfs/volumes.c