diff options
Diffstat (limited to 'print-tree.c')
-rw-r--r-- | print-tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/print-tree.c b/print-tree.c index 70a7acc6..3a7c13cd 100644 --- a/print-tree.c +++ b/print-tree.c @@ -1060,7 +1060,7 @@ void btrfs_print_tree(struct btrfs_root *root, struct extent_buffer *eb, int fol btrfs_node_blockptr(eb, i), size, btrfs_node_ptr_generation(eb, i)); - if (!next) { + if (!extent_buffer_uptodate(next)) { fprintf(stderr, "failed to read %llu in tree %llu\n", (unsigned long long)btrfs_node_blockptr(eb, i), (unsigned long long)btrfs_header_owner(eb)); |