btrfs-progs: image: move metadump definitions to own header
[platform/upstream/btrfs-progs.git] / cmds-inspect-tree-stats.c
index ecb33ce..82a6a16 100644 (file)
@@ -35,7 +35,6 @@
 #include "volumes.h"
 #include "utils.h"
 #include "commands.h"
-#include "cmds-inspect-tree-stats.h"
 #include "help.h"
 
 static int verbose = 0;
@@ -153,8 +152,7 @@ static int walk_nodes(struct btrfs_root *root, struct btrfs_path *path,
 
                path->slots[level] = i;
                if ((level - 1) > 0 || find_inline) {
-                       tmp = read_tree_block(root, cur_blocknr,
-                                             nodesize,
+                       tmp = read_tree_block(root->fs_info, cur_blocknr,
                                              btrfs_node_ptr_generation(b, i));
                        if (!extent_buffer_uptodate(tmp)) {
                                error("failed to read blocknr %llu",