path: root/ctree.h
diff options
authorQu Wenruo <>2017-05-17 16:57:35 +0800
committerDavid Sterba <>2017-07-03 13:35:10 +0200
commitc4893f15cedc59c14656b06b83bb5c8a441efe66 (patch)
tree9a3e2335938c09040ebfb081d23b7ef7047fb060 /ctree.h
parent3c7a04e59272837b8d70f2cfdfd7173d53c72616 (diff)
btrfs-progs: Introduce sectorsize nodesize and stripesize members for
btrfs_fs_info Just like what we do in kernel, since we will not support different leaf/node/stripe size per tree, there is no need to store these block sizes in btrfs_root. This patch will introduce these block size members into btrfs_fs_info structure, allowing us to convert such usage in later patches. Signed-off-by: Qu Wenruo <>
Diffstat (limited to 'ctree.h')
1 files changed, 4 insertions, 0 deletions
diff --git a/ctree.h b/ctree.h
index c457a8dc..78956a4f 100644
--- a/ctree.h
+++ b/ctree.h
@@ -1147,6 +1147,10 @@ struct btrfs_fs_info {
struct cache_tree *fsck_extent_cache;
struct cache_tree *corrupt_blocks;
+ /* Cached block sizes */
+ u32 nodesize;
+ u32 sectorsize;
+ u32 stripesize;