]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit258b9a126e1fab155be6ffac07f236847e8587e1
treee5dba952b8880f688563a3ca3299f77ba12979e7
parent42b0bdd6ba2fbeed425c02cbc9bfa4a41bd739ff
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