aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2018-03-20 15:07:58 -0400
committerDavid Sterba <dsterba@suse.com>2018-05-28 12:07:25 -0400
commiteee95e3fb0c3bcda4e85fc219964f2f69a218f03 (patch)
treedbdd460255f4ea9a0f6e21b95303403d0853cc0f /fs/btrfs/dev-replace.c
parent010a47bde94201d9abdab7ff04bedc17b6e8c357 (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>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions