summaryrefslogtreecommitdiff
path: root/cmds-inspect-tree-stats.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-04-01 13:17:44 +0200
committerDavid Sterba <dsterba@suse.com>2016-05-02 14:40:23 +0200
commit3be6e3e7c91c98fa0ff42aa37b482a006f8ab26f (patch)
tree548f20c67b5cf7d7ccded3ca9a78a6575756f26a /cmds-inspect-tree-stats.c
parent2a796d84af42403ea149d35ee5578741c5470474 (diff)
btrfs-progs: deprecate and stop using btrfs_level_size
Size of a b-tree node is always nodesize, regardless of the level. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'cmds-inspect-tree-stats.c')
-rw-r--r--cmds-inspect-tree-stats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds-inspect-tree-stats.c b/cmds-inspect-tree-stats.c
index 4e1a28e..e80041d 100644
--- a/cmds-inspect-tree-stats.c
+++ b/cmds-inspect-tree-stats.c
@@ -152,7 +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,
- btrfs_level_size(root, level - 1),
+ root->nodesize,
btrfs_node_ptr_generation(b, i));
if (!extent_buffer_uptodate(tmp)) {
fprintf(stderr, "Failed to read blocknr %llu\n",