summaryrefslogtreecommitdiff
path: root/print-tree.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-05-12 13:51:24 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2008-05-12 13:51:24 -0400
commit9a9bdd6047a378dbe5a65a79cb8537f797d4fd5c (patch)
tree970d141f33eaa0ac683fb772797172d24c7b8d97 /print-tree.c
parentd160150c8bf255b1dee65cab7488ac2529433a39 (diff)
Pass down the expected generation number when reading tree blocks
Diffstat (limited to 'print-tree.c')
-rw-r--r--print-tree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/print-tree.c b/print-tree.c
index f0757764..dd4fcf16 100644
--- a/print-tree.c
+++ b/print-tree.c
@@ -314,7 +314,8 @@ void btrfs_print_tree(struct btrfs_root *root, struct extent_buffer *eb)
for (i = 0; i < nr; i++) {
struct extent_buffer *next = read_tree_block(root,
btrfs_node_blockptr(eb, i),
- size);
+ size,
+ btrfs_node_ptr_generation(eb, i));
if (btrfs_is_leaf(next) &&
btrfs_header_level(eb) != 1)
BUG();