aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/print-tree.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-05-12 12:59:19 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:03 -0400
commitca7a79ad8dbe24669a8ced01f9fc0126b872745d (patch)
tree0d53d8e6fd9ff9aece4e703581918c7817175d5d /fs/btrfs/print-tree.c
parent188de649c51f03df3f8a601aea0110a3870815c2 (diff)
Btrfs: Pass down the expected generation number when reading tree blocks
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/print-tree.c')
-rw-r--r--fs/btrfs/print-tree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/print-tree.c b/fs/btrfs/print-tree.c
index e99f3249d05a..14d863720302 100644
--- a/fs/btrfs/print-tree.c
+++ b/fs/btrfs/print-tree.c
@@ -186,7 +186,8 @@ void btrfs_print_tree(struct btrfs_root *root, struct extent_buffer *c)
186 for (i = 0; i < nr; i++) { 186 for (i = 0; i < nr; i++) {
187 struct extent_buffer *next = read_tree_block(root, 187 struct extent_buffer *next = read_tree_block(root,
188 btrfs_node_blockptr(c, i), 188 btrfs_node_blockptr(c, i),
189 btrfs_level_size(root, level - 1)); 189 btrfs_level_size(root, level - 1),
190 btrfs_node_ptr_generation(c, i));
190 if (btrfs_is_leaf(next) && 191 if (btrfs_is_leaf(next) &&
191 btrfs_header_level(c) != 1) 192 btrfs_header_level(c) != 1)
192 BUG(); 193 BUG();