diff options
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r-- | fs/btrfs/volumes.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 2eed7f91f51a..7db4cfd03a98 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c | |||
@@ -1816,6 +1816,7 @@ again: | |||
1816 | em->start = key.offset; | 1816 | em->start = key.offset; |
1817 | em->len = *num_bytes; | 1817 | em->len = *num_bytes; |
1818 | em->block_start = 0; | 1818 | em->block_start = 0; |
1819 | em->block_len = em->len; | ||
1819 | 1820 | ||
1820 | if (type & BTRFS_BLOCK_GROUP_SYSTEM) { | 1821 | if (type & BTRFS_BLOCK_GROUP_SYSTEM) { |
1821 | ret = btrfs_add_system_chunk(trans, chunk_root, &key, | 1822 | ret = btrfs_add_system_chunk(trans, chunk_root, &key, |
@@ -2323,6 +2324,7 @@ static int read_one_chunk(struct btrfs_root *root, struct btrfs_key *key, | |||
2323 | em->start = logical; | 2324 | em->start = logical; |
2324 | em->len = length; | 2325 | em->len = length; |
2325 | em->block_start = 0; | 2326 | em->block_start = 0; |
2327 | em->block_len = em->len; | ||
2326 | 2328 | ||
2327 | map->num_stripes = num_stripes; | 2329 | map->num_stripes = num_stripes; |
2328 | map->io_width = btrfs_chunk_io_width(leaf, chunk); | 2330 | map->io_width = btrfs_chunk_io_width(leaf, chunk); |