btrfs: Fix error messages in qgroup_rescan_init
[ Upstream commit 37d02592f1
]
The branch of qgroup_rescan_init which is executed from the mount
path prints wrong errors messages. The textual print out in case
BTRFS_QGROUP_STATUS_FLAG_RESCAN/BTRFS_QGROUP_STATUS_FLAG_ON are not
set are transposed. Fix it by exchanging their place.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
673e43cf49
commit
7312543371
|
@ -3232,12 +3232,12 @@ qgroup_rescan_init(struct btrfs_fs_info *fs_info, u64 progress_objectid,
|
||||||
if (!(fs_info->qgroup_flags &
|
if (!(fs_info->qgroup_flags &
|
||||||
BTRFS_QGROUP_STATUS_FLAG_RESCAN)) {
|
BTRFS_QGROUP_STATUS_FLAG_RESCAN)) {
|
||||||
btrfs_warn(fs_info,
|
btrfs_warn(fs_info,
|
||||||
"qgroup rescan init failed, qgroup is not enabled");
|
"qgroup rescan init failed, qgroup rescan is not queued");
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
} else if (!(fs_info->qgroup_flags &
|
} else if (!(fs_info->qgroup_flags &
|
||||||
BTRFS_QGROUP_STATUS_FLAG_ON)) {
|
BTRFS_QGROUP_STATUS_FLAG_ON)) {
|
||||||
btrfs_warn(fs_info,
|
btrfs_warn(fs_info,
|
||||||
"qgroup rescan init failed, qgroup rescan is not queued");
|
"qgroup rescan init failed, qgroup is not enabled");
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue