diff options
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r-- | fs/btrfs/tree-log.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index b4c191d6c774..0f5537e60bb4 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c | |||
@@ -2667,6 +2667,9 @@ static noinline int copy_items(struct btrfs_trans_handle *trans, | |||
2667 | extent = btrfs_item_ptr(src, start_slot + i, | 2667 | extent = btrfs_item_ptr(src, start_slot + i, |
2668 | struct btrfs_file_extent_item); | 2668 | struct btrfs_file_extent_item); |
2669 | 2669 | ||
2670 | if (btrfs_file_extent_generation(src, extent) < trans->transid) | ||
2671 | continue; | ||
2672 | |||
2670 | found_type = btrfs_file_extent_type(src, extent); | 2673 | found_type = btrfs_file_extent_type(src, extent); |
2671 | if (found_type == BTRFS_FILE_EXTENT_REG || | 2674 | if (found_type == BTRFS_FILE_EXTENT_REG || |
2672 | found_type == BTRFS_FILE_EXTENT_PREALLOC) { | 2675 | found_type == BTRFS_FILE_EXTENT_PREALLOC) { |