From 8690c887d1dcad384d44ca21bf950a4ec2fbffdb Mon Sep 17 00:00:00 2001 From: Qu Wenruo Date: Thu, 18 May 2017 10:51:08 +0800 Subject: btrfs-progs: Refactor read_tree_block to get rid of btrfs_root The only reasom read_tree_block() needs a btrfs_root parameter is to get its node/sector size. And long ago, I have already introduced a compactible interface, read_tree_block_fs_info() to pass btrfs_fs_info instead of btrfs_root. Since we have cleaned up all root->sector/node/stripesize users, we should be OK to refactor read_tree_block() function. Signed-off-by: Qu Wenruo --- qgroup-verify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qgroup-verify.c') diff --git a/qgroup-verify.c b/qgroup-verify.c index 2f4b1c66..5162adbb 100644 --- a/qgroup-verify.c +++ b/qgroup-verify.c @@ -711,7 +711,7 @@ static int travel_tree(struct btrfs_fs_info *info, struct btrfs_root *root, // printf("travel_tree: bytenr: %llu\tnum_bytes: %llu\tref_parent: %llu\n", // bytenr, num_bytes, ref_parent); - eb = read_tree_block(root, bytenr, num_bytes, 0); + eb = read_tree_block(info, bytenr, num_bytes, 0); if (!extent_buffer_uptodate(eb)) return -EIO; -- cgit v1.2.3