diff options
author | 2018-03-20 20:07:58 +0100 | |
---|---|---|
committer | 2018-05-28 18:07:25 +0200 | |
commit | eee95e3fb0c3bcda4e85fc219964f2f69a218f03 (patch) | |
tree | dbdd460255f4ea9a0f6e21b95303403d0853cc0f /fs/btrfs/dev-replace.c | |
parent | btrfs: add proper safety check before resuming dev-replace (diff) | |
download | linux-dev-eee95e3fb0c3bcda4e85fc219964f2f69a218f03.tar.xz linux-dev-eee95e3fb0c3bcda4e85fc219964f2f69a218f03.zip |
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>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions