summaryrefslogtreecommitdiff
path: root/qgroup-verify.c
diff options
context:
space:
mode:
authorChandan Rajendra <chandan@linux.vnet.ibm.com>2014-11-27 10:26:45 +0530
committerDavid Sterba <dsterba@suse.cz>2014-11-27 18:37:05 +0100
commit602536773da3a80a9b550f02acd0a2a576018dfb (patch)
treec801779a7d6bb9e6d3f59e027a93ffd7cae76e57 /qgroup-verify.c
parent8be2fff1295c39e11d5cf6a40517b0538620f7cb (diff)
Btrfs-progs: add_refs_for_implied: Use root_id instead of root_bytenr.
resolve_one_root() returns the objectid of a tree rather than the logical address of the root node. Hence using root_bytenr is misleading. Fix this. Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'qgroup-verify.c')
-rw-r--r--qgroup-verify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/qgroup-verify.c b/qgroup-verify.c
index c0c61d0b..c98c7511 100644
--- a/qgroup-verify.c
+++ b/qgroup-verify.c
@@ -553,11 +553,11 @@ static int add_refs_for_implied(struct btrfs_fs_info *info, u64 bytenr,
struct tree_block *block)
{
int ret;
- u64 root_bytenr = resolve_one_root(bytenr);
+ u64 root_id = resolve_one_root(bytenr);
struct btrfs_root *root;
struct btrfs_key key;
- key.objectid = root_bytenr;
+ key.objectid = root_id;
key.type = BTRFS_ROOT_ITEM_KEY;
key.offset = (u64)-1;