aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 3878772fcffd..5accced2858a 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -594,6 +594,7 @@ struct btrfs_root *open_ctree(struct super_block *sb)
594 tree_root->nodesize = nodesize; 594 tree_root->nodesize = nodesize;
595 tree_root->leafsize = leafsize; 595 tree_root->leafsize = leafsize;
596 tree_root->sectorsize = sectorsize; 596 tree_root->sectorsize = sectorsize;
597 sb_set_blocksize(sb, sectorsize);
597 598
598 i_size_write(fs_info->btree_inode, 599 i_size_write(fs_info->btree_inode,
599 btrfs_super_total_bytes(disk_super)); 600 btrfs_super_total_bytes(disk_super));