]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: add sanity check when resuming balance after mount
authorDavid Sterba <dsterba@suse.com>
Tue, 20 Mar 2018 19:07:58 +0000 (20:07 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 May 2018 16:07:25 +0000 (18:07 +0200)
commit3eb02afccab065e407aad7b1387b528c741b7a9b
treedbdd460255f4ea9a0f6e21b95303403d0853cc0f
parentbb80ccdbc1bd52421db086c07dd72ec40cd76e34
btrfs: add sanity check when resuming balance after mount

Replace a WARN_ON with a proper check and message in case something goes
really wrong and resumed balance cannot set up its exclusive status.
The check is a user friendly assertion, I don't expect to ever happen
under normal circumstances.

Also document that the paused balance starts here and owns the exclusive
op status.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c