summaryrefslogtreecommitdiff
path: root/debug-tree.c
diff options
context:
space:
mode:
authorYan Zheng <zheng.yan@oracle.com>2008-10-09 11:55:30 -0400
committerChris Mason <chris.mason@oracle.com>2008-10-09 11:55:30 -0400
commit5986faaf479a38b0ebd2872e880d0bd81481d95b (patch)
tree3343c6e9b7e6f6f7642dad998da868a39068f96b /debug-tree.c
parent09ab0365ff14c5481a2b0f3b401666d2fab3d05a (diff)
Remove offset field from struct btrfs_extent_ref
The offset field in struct btrfs_extent_ref records the position inside file that file extent is referenced by. In the new back reference system, tree leaves holding reference to file extent are recorded explicitly. We can quickly scan these tree leaves, so the offset field is not required. This patch also makes the back reference system check the objectid when extents are being deleted Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Diffstat (limited to 'debug-tree.c')
-rw-r--r--debug-tree.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/debug-tree.c b/debug-tree.c
index de295df3..885962b2 100644
--- a/debug-tree.c
+++ b/debug-tree.c
@@ -58,13 +58,12 @@ static void print_extent_leaf(struct btrfs_root *root, struct extent_buffer *l)
case BTRFS_EXTENT_REF_KEY:
ref = btrfs_item_ptr(l, i, struct btrfs_extent_ref);
printf("%llu %llu extent back ref root %llu gen %llu "
- "owner %llu offset %llu num_refs %lu\n",
+ "owner %llu num_refs %lu\n",
(unsigned long long)last,
(unsigned long long)last_len,
(unsigned long long)btrfs_ref_root(l, ref),
(unsigned long long)btrfs_ref_generation(l, ref),
(unsigned long long)btrfs_ref_objectid(l, ref),
- (unsigned long long)btrfs_ref_offset(l, ref),
(unsigned long)btrfs_ref_num_refs(l, ref));
break;
};