From d2ed05c9ae0164f82e1098dba95ab823d40e5164 Mon Sep 17 00:00:00 2001 From: Qu Wenruo Date: Wed, 17 May 2017 17:17:56 +0800 Subject: btrfs-progs: Refactor block sizes users in disk-io.c Since we have cached block sizes in fs_info, there is no need to specify these sizes in btrfs_setup_root() function. And refactor all root->sector/node/stripesize users in disk-io.c. Signed-off-by: Qu Wenruo --- disk-io.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'disk-io.h') diff --git a/disk-io.h b/disk-io.h index 27dea40a..b4d02275 100644 --- a/disk-io.h +++ b/disk-io.h @@ -133,9 +133,8 @@ void readahead_tree_block(struct btrfs_root *root, u64 bytenr, u32 blocksize, struct extent_buffer* btrfs_find_create_tree_block( struct btrfs_fs_info *fs_info, u64 bytenr, u32 blocksize); -void btrfs_setup_root(u32 nodesize, u32 sectorsize, - u32 stripesize, struct btrfs_root *root, - struct btrfs_fs_info *fs_info, u64 objectid); +void btrfs_setup_root(struct btrfs_root *root, struct btrfs_fs_info *fs_info, + u64 objectid); int clean_tree_block(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct extent_buffer *buf); -- cgit v1.2.3