mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-01 12:04:08 +00:00
btrfs: balance: use term redundancy instead of integrity in message
When balance reduces the number of copies of metadata, it reduces the redundancy, use the term redundancy instead of integrity. Signed-off-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
1f95ec012c
commit
e62869be1e
1 changed files with 6 additions and 6 deletions
|
@ -4036,7 +4036,7 @@ int btrfs_balance(struct btrfs_fs_info *fs_info,
|
||||||
int ret;
|
int ret;
|
||||||
u64 num_devices;
|
u64 num_devices;
|
||||||
unsigned seq;
|
unsigned seq;
|
||||||
bool reducing_integrity;
|
bool reducing_redundancy;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (btrfs_fs_closing(fs_info) ||
|
if (btrfs_fs_closing(fs_info) ||
|
||||||
|
@ -4119,9 +4119,9 @@ int btrfs_balance(struct btrfs_fs_info *fs_info,
|
||||||
((bctl->meta.flags & BTRFS_BALANCE_ARGS_CONVERT) &&
|
((bctl->meta.flags & BTRFS_BALANCE_ARGS_CONVERT) &&
|
||||||
(fs_info->avail_metadata_alloc_bits & allowed) &&
|
(fs_info->avail_metadata_alloc_bits & allowed) &&
|
||||||
!(bctl->meta.target & allowed)))
|
!(bctl->meta.target & allowed)))
|
||||||
reducing_integrity = true;
|
reducing_redundancy = true;
|
||||||
else
|
else
|
||||||
reducing_integrity = false;
|
reducing_redundancy = false;
|
||||||
|
|
||||||
/* if we're not converting, the target field is uninitialized */
|
/* if we're not converting, the target field is uninitialized */
|
||||||
meta_target = (bctl->meta.flags & BTRFS_BALANCE_ARGS_CONVERT) ?
|
meta_target = (bctl->meta.flags & BTRFS_BALANCE_ARGS_CONVERT) ?
|
||||||
|
@ -4130,13 +4130,13 @@ int btrfs_balance(struct btrfs_fs_info *fs_info,
|
||||||
bctl->data.target : fs_info->avail_data_alloc_bits;
|
bctl->data.target : fs_info->avail_data_alloc_bits;
|
||||||
} while (read_seqretry(&fs_info->profiles_lock, seq));
|
} while (read_seqretry(&fs_info->profiles_lock, seq));
|
||||||
|
|
||||||
if (reducing_integrity) {
|
if (reducing_redundancy) {
|
||||||
if (bctl->flags & BTRFS_BALANCE_FORCE) {
|
if (bctl->flags & BTRFS_BALANCE_FORCE) {
|
||||||
btrfs_info(fs_info,
|
btrfs_info(fs_info,
|
||||||
"balance: force reducing metadata integrity");
|
"balance: force reducing metadata redundancy");
|
||||||
} else {
|
} else {
|
||||||
btrfs_err(fs_info,
|
btrfs_err(fs_info,
|
||||||
"balance: reduces metadata integrity, use --force if you want this");
|
"balance: reduces metadata redundancy, use --force if you want this");
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue