diff options
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index e01c0d0310ab..59660293d291 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -3949,6 +3949,8 @@ again: | |||
3949 | found_type == BTRFS_FILE_EXTENT_PREALLOC) { | 3949 | found_type == BTRFS_FILE_EXTENT_PREALLOC) { |
3950 | em->start = extent_start; | 3950 | em->start = extent_start; |
3951 | em->len = extent_end - extent_start; | 3951 | em->len = extent_end - extent_start; |
3952 | em->orig_start = extent_start - | ||
3953 | btrfs_file_extent_offset(leaf, item); | ||
3952 | bytenr = btrfs_file_extent_disk_bytenr(leaf, item); | 3954 | bytenr = btrfs_file_extent_disk_bytenr(leaf, item); |
3953 | if (bytenr == 0) { | 3955 | if (bytenr == 0) { |
3954 | em->block_start = EXTENT_MAP_HOLE; | 3956 | em->block_start = EXTENT_MAP_HOLE; |
@@ -3988,6 +3990,7 @@ again: | |||
3988 | em->start = extent_start + extent_offset; | 3990 | em->start = extent_start + extent_offset; |
3989 | em->len = (copy_size + root->sectorsize - 1) & | 3991 | em->len = (copy_size + root->sectorsize - 1) & |
3990 | ~((u64)root->sectorsize - 1); | 3992 | ~((u64)root->sectorsize - 1); |
3993 | em->orig_start = EXTENT_MAP_INLINE; | ||
3991 | if (compressed) | 3994 | if (compressed) |
3992 | set_bit(EXTENT_FLAG_COMPRESSED, &em->flags); | 3995 | set_bit(EXTENT_FLAG_COMPRESSED, &em->flags); |
3993 | ptr = btrfs_file_extent_inline_start(item) + extent_offset; | 3996 | ptr = btrfs_file_extent_inline_start(item) + extent_offset; |