btrfs-progs: qgroup-verify: Remove duplicated message in report_qgroups

Since 1d5b2ad9 ("btrfs-progs: qgroup-verify: Don't treat qgroup
difference as error if the fs hasn't initialized a rescan") a new
message is being printed when the qgroups is incosistent and the rescan
hasn't being executed, so remove the later message send to stderr.

While in this function, simplify the check for a not executed rescan
since !counts.rescan_running and counts.rescan_running == 0 means the
same thing.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Marcos Paulo de Souza 2020-03-15 00:42:53 -03:00 committed by David Sterba
parent 7b2712bf92
commit 59af046fd2
1 changed files with 1 additions and 4 deletions

View File

@ -1336,14 +1336,11 @@ int report_qgroups(int all)
/* /*
* It's possible that rescan hasn't been initialized yet. * It's possible that rescan hasn't been initialized yet.
*/ */
if (counts.qgroup_inconsist && !counts.rescan_running && if (counts.qgroup_inconsist && !counts.rescan_running) {
counts.rescan_running == 0) {
printf( printf(
"Rescan hasn't been initialized, a difference in qgroup accounting is expected\n"); "Rescan hasn't been initialized, a difference in qgroup accounting is expected\n");
skip_err = true; skip_err = true;
} }
if (counts.qgroup_inconsist && !counts.rescan_running)
fprintf(stderr, "Qgroup are marked as inconsistent.\n");
node = rb_first(&counts.root); node = rb_first(&counts.root);
while (node) { while (node) {
c = rb_entry(node, struct qgroup_count, rb_node); c = rb_entry(node, struct qgroup_count, rb_node);