Message ID | b8339a9e3e5bd4c20ab51df2dd32a3d550351e12.1636574767.git.josef@toxicpanda.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | btrfs-progs: extent tree v2 global root support prep work | expand |
diff --git a/check/qgroup-verify.c b/check/qgroup-verify.c index 14645c85..a514fee1 100644 --- a/check/qgroup-verify.c +++ b/check/qgroup-verify.c @@ -765,6 +765,10 @@ static int add_refs_for_implied(struct btrfs_fs_info *info, u64 bytenr, struct btrfs_root *root; struct btrfs_key key; + /* If this is a global tree skip it. */ + if (!is_fstree(root_id)) + return 0; + /* Tree reloc tree doesn't contribute qgroup, skip it */ if (root_id == BTRFS_TREE_RELOC_OBJECTID) return 0;