diff options
author | Adam Borowski <kilobyte@angband.pl> | 2017-03-07 23:34:44 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-04-18 14:07:23 +0200 |
commit | 14506127979a5a3d0c5d9b4cc76ce9d4ec23b717 (patch) | |
tree | b75e6497760e7b0c9e08124a4c03e0798ad426e9 /fs/btrfs/inode.c | |
parent | aeea4c10a88c9ec405072cecb18939b0a9c876f6 (diff) |
btrfs: fix a bogus warning when converting only data or metadata
If your filesystem has, eg, data:raid0 metadata:raid1, and you run "btrfs
balance -dconvert=raid1", the meta.target field will be uninitialized.
That's otherwise ok, as it's unused except for this warning.
Thus, let's use the existing set of raid levels for the comparison.
As a side effect, non-convert balances will now nag about data>metadata.
Signed-off-by: Adam Borowski <kilobyte@angband.pl>
Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode.c')
0 files changed, 0 insertions, 0 deletions