aboutsummaryrefslogtreecommitdiffstats
path: root/qgroup-verify.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 /qgroup-verify.c
parent2a796d84af42403ea149d35ee5578741c5470474 (diff)
downloadbtrfs-progs-3be6e3e7c91c98fa0ff42aa37b482a006f8ab26f.tar.gz
btrfs-progs-3be6e3e7c91c98fa0ff42aa37b482a006f8ab26f.tar.xz
btrfs-progs-3be6e3e7c91c98fa0ff42aa37b482a006f8ab26f.zip
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 'qgroup-verify.c')
-rw-r--r--qgroup-verify.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/qgroup-verify.c b/qgroup-verify.c
index 7e6349b..10ff8e0 100644
--- a/qgroup-verify.c
+++ b/qgroup-verify.c
@@ -544,8 +544,7 @@ static int travel_tree(struct btrfs_fs_info *info, struct btrfs_root *root,
nr = btrfs_header_nritems(eb);
for (i = 0; i < nr; i++) {
new_bytenr = btrfs_node_blockptr(eb, i);
- new_num_bytes = btrfs_level_size(root,
- btrfs_header_level(eb) - 1);
+ new_num_bytes = root->nodesize;
ret = travel_tree(info, root, new_bytenr, new_num_bytes,
ref_parent);