diff options
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r-- | fs/btrfs/tree-log.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index d3f9c2c663c4..6ac1b7f72e2a 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c | |||
@@ -2610,6 +2610,11 @@ static noinline int copy_items(struct btrfs_trans_handle *trans, | |||
2610 | u64 cs = btrfs_file_extent_offset(src, extent); | 2610 | u64 cs = btrfs_file_extent_offset(src, extent); |
2611 | u64 cl = btrfs_file_extent_num_bytes(src, | 2611 | u64 cl = btrfs_file_extent_num_bytes(src, |
2612 | extent);; | 2612 | extent);; |
2613 | if (btrfs_file_extent_compression(src, | ||
2614 | extent)) { | ||
2615 | cs = 0; | ||
2616 | cl = dl; | ||
2617 | } | ||
2613 | /* ds == 0 is a hole */ | 2618 | /* ds == 0 is a hole */ |
2614 | if (ds != 0) { | 2619 | if (ds != 0) { |
2615 | ret = btrfs_inc_extent_ref(trans, log, | 2620 | ret = btrfs_inc_extent_ref(trans, log, |