path: root/disk-io.h
diff options
authorQu Wenruo <>2017-05-17 17:17:56 +0800
committerDavid Sterba <>2017-07-03 13:35:10 +0200
commitd2ed05c9ae0164f82e1098dba95ab823d40e5164 (patch)
tree3824b158a0a7f233cd98794401c92d7ffabd7456 /disk-io.h
parentc4893f15cedc59c14656b06b83bb5c8a441efe66 (diff)
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 <>
Diffstat (limited to 'disk-io.h')
1 files changed, 2 insertions, 3 deletions
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);