X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=cmds-inspect-tree-stats.c;h=82a6a16c88d602bd6935e372f0ce6da4c0ddb400;hb=c76b05fba284c68c6cb7b710dbb95a42089e8538;hp=ecb33ce23f2328974b24c1abac83b5d2f977966d;hpb=b2615be24acc70cf4cfb377366387588e85170a3;p=platform%2Fupstream%2Fbtrfs-progs.git diff --git a/cmds-inspect-tree-stats.c b/cmds-inspect-tree-stats.c index ecb33ce..82a6a16 100644 --- a/cmds-inspect-tree-stats.c +++ b/cmds-inspect-tree-stats.c @@ -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",