diff options
| author | David Sterba <[email protected]> | 2018-03-20 19:07:58 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2018-05-28 16:07:25 +0000 |
| commit | eee95e3fb0c3bcda4e85fc219964f2f69a218f03 (patch) | |
| tree | dbdd460255f4ea9a0f6e21b95303403d0853cc0f /fs/btrfs/dev-replace.c | |
| parent | btrfs: add proper safety check before resuming dev-replace (diff) | |
| download | kernel-eee95e3fb0c3bcda4e85fc219964f2f69a218f03.tar.gz kernel-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 <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
