* [PATCH] Btrfs-progs: add_refs_for_implied: Use root_id instead of root_bytenr.
@ 2014-11-27 4:56 Chandan Rajendra
0 siblings, 0 replies; only message in thread
From: Chandan Rajendra @ 2014-11-27 4:56 UTC (permalink / raw)
To: linux-btrfs; +Cc: Chandan Rajendra
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>
---
qgroup-verify.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/qgroup-verify.c b/qgroup-verify.c
index c0c61d0..c98c751 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;
--
2.1.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-11-27 4:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-27 4:56 [PATCH] Btrfs-progs: add_refs_for_implied: Use root_id instead of root_bytenr Chandan Rajendra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).