summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2017-05-18 10:22:22 +0800
committerDavid Sterba <dsterba@suse.com>2017-07-03 13:35:11 +0200
commitfa5fd68021322069ea379db3c20a8e154bbca581 (patch)
tree094d5c6bb9c658e4f4e4c8413c4689e894bba2a6
parent7a30f5a01c82faf1a3d86930613342c27ec12dd3 (diff)
btrfs-progs: Remove block size members in btrfs_root
Finally, we can get rid of per tree block size members now. Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
-rw-r--r--ctree.h9
-rw-r--r--disk-io.c3
2 files changed, 0 insertions, 12 deletions
diff --git a/ctree.h b/ctree.h
index 84298c7b..602c9562 100644
--- a/ctree.h
+++ b/ctree.h
@@ -1166,15 +1166,6 @@ struct btrfs_root {
u64 objectid;
u64 last_trans;
- /* data allocations are done in sectorsize units */
- u32 sectorsize;
-
- /* node allocations are done in nodesize units */
- u32 nodesize;
-
- /* leaf allocations are done in nodesize units */
- u32 stripesize;
-
int ref_cows;
int track_dirty;
diff --git a/disk-io.c b/disk-io.c
index 89e35c92..553073a4 100644
--- a/disk-io.c
+++ b/disk-io.c
@@ -481,9 +481,6 @@ void btrfs_setup_root(struct btrfs_root *root, struct btrfs_fs_info *fs_info,
{
root->node = NULL;
root->commit_root = NULL;
- root->sectorsize = fs_info->sectorsize;
- root->nodesize = fs_info->nodesize;
- root->stripesize = fs_info->stripesize;
root->ref_cows = 0;
root->track_dirty = 0;