btrfs-progs: Refactor read_tree_block to get rid of btrfs_root
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Thu, 18 May 2017 02:51:08 +0000 (10:51 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 3 Jul 2017 11:35:11 +0000 (13:35 +0200)
commit8690c887d1dcad384d44ca21bf950a4ec2fbffdb
treebf736b51824e4e834c4d0e8ea79169bf40849d04
parent060c7b3a1a40d2e9cacbdb37a02791bacae32491
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 <quwenruo@cn.fujitsu.com>
14 files changed:
backref.c
btrfs-corrupt-block.c
btrfstune.c
cmds-check.c
cmds-inspect-dump-tree.c
cmds-inspect-tree-stats.c
cmds-restore.c
ctree.c
disk-io.c
disk-io.h
find-root.c
image/main.c
print-tree.c
qgroup-verify.c