aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fusionio.com>2012-09-26 11:07:06 -0400
committerChris Mason <chris.mason@fusionio.com>2012-10-09 09:15:41 -0400
commit6f1fed775316d58ba356b2ce62de600ad00f003a (patch)
treee743c7af1cb98715dd15c8b49e7e84ddda808153 /fs/btrfs/tree-log.c
parente6138876ad8327250d77291b3262fee356267211 (diff)
Btrfs: don't lookup csums for prealloc extents
The tree logging stuff was looking up csums to copy over for prealloc extents which is just work we don't need to be doing. Thanks, Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r--fs/btrfs/tree-log.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c
index f4b9e54b1da..31b46a9e94c 100644
--- a/fs/btrfs/tree-log.c
+++ b/fs/btrfs/tree-log.c
@@ -3011,8 +3011,7 @@ static noinline int copy_items(struct btrfs_trans_handle *trans,
3011 continue; 3011 continue;
3012 3012
3013 found_type = btrfs_file_extent_type(src, extent); 3013 found_type = btrfs_file_extent_type(src, extent);
3014 if (found_type == BTRFS_FILE_EXTENT_REG || 3014 if (found_type == BTRFS_FILE_EXTENT_REG) {
3015 found_type == BTRFS_FILE_EXTENT_PREALLOC) {
3016 u64 ds, dl, cs, cl; 3015 u64 ds, dl, cs, cl;
3017 ds = btrfs_file_extent_disk_bytenr(src, 3016 ds = btrfs_file_extent_disk_bytenr(src,
3018 extent); 3017 extent);