]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Btrfs: don't lookup csums for prealloc extents
authorJosef Bacik <jbacik@fusionio.com>
Wed, 26 Sep 2012 15:07:06 +0000 (11:07 -0400)
committerChris Mason <chris.mason@fusionio.com>
Tue, 9 Oct 2012 13:15:41 +0000 (09:15 -0400)
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>
fs/btrfs/tree-log.c

index f4b9e54b1da2415b74b17485a33143f86d60f7e2..31b46a9e94cccfd5a8017c32d859431779fe5504 100644 (file)
@@ -3011,8 +3011,7 @@ static noinline int copy_items(struct btrfs_trans_handle *trans,
                                continue;
 
                        found_type = btrfs_file_extent_type(src, extent);
-                       if (found_type == BTRFS_FILE_EXTENT_REG ||
-                           found_type == BTRFS_FILE_EXTENT_PREALLOC) {
+                       if (found_type == BTRFS_FILE_EXTENT_REG) {
                                u64 ds, dl, cs, cl;
                                ds = btrfs_file_extent_disk_bytenr(src,
                                                                extent);