commit | eee95e3fb0c3bcda4e85fc219964f2f69a218f03 | [log] [tgz] |
---|---|---|
author | David Sterba <dsterba@suse.com> | Tue Mar 20 20:07:58 2018 +0100 |
committer | David Sterba <dsterba@suse.com> | Mon May 28 18:07:25 2018 +0200 |
tree | dbdd460255f4ea9a0f6e21b95303403d0853cc0f | |
parent | 010a47bde94201d9abdab7ff04bedc17b6e8c357 [diff] |
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>