projects
/
platform
/
upstream
/
btrfs-progs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
btrfs-progs: read_tree_block() and read_node_slot() cleanup.
[platform/upstream/btrfs-progs.git]
/
btrfs-calc-size.c
diff --git
a/btrfs-calc-size.c
b/btrfs-calc-size.c
index
800ceb6
..
1372084
100644
(file)
--- a/
btrfs-calc-size.c
+++ b/
btrfs-calc-size.c
@@
-156,7
+156,7
@@
static int walk_nodes(struct btrfs_root *root, struct btrfs_path *path,
tmp = read_tree_block(root, cur_blocknr,
btrfs_level_size(root, level - 1),
btrfs_node_ptr_generation(b, i));
- if (!
tmp
) {
+ if (!
extent_buffer_uptodate(tmp)
) {
fprintf(stderr, "Failed to read blocknr %Lu\n",
btrfs_node_blockptr(b, i));
continue;