btrfs: balance: factor out convert profile validation
authorDavid Sterba <dsterba@suse.com>
Thu, 27 Feb 2020 20:00:52 +0000 (21:00 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:52 +0000 (17:01 +0100)
commit5ba366c3999cb1a1a56571b2c64c13ff67f1005c
tree68c749b37b3bd4acefcd1301c024a72c5266b5e2
parentc67b38925b682bdd3419ff39688991b1dc7cdfb6
btrfs: balance: factor out convert profile validation

The validation follows the same steps for all three block group types,
the existing helper validate_convert_profile can be enhanced and do more
of the common things.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c