Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f1fed77 authored by Josef Bacik's avatar Josef Bacik Committed by Chris Mason
Browse files

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: default avatarJosef Bacik <jbacik@fusionio.com>
parent e6138876
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -3011,8 +3011,7 @@ static noinline int copy_items(struct btrfs_trans_handle *trans,
				continue;
				continue;


			found_type = btrfs_file_extent_type(src, extent);
			found_type = btrfs_file_extent_type(src, extent);
			if (found_type == BTRFS_FILE_EXTENT_REG ||
			if (found_type == BTRFS_FILE_EXTENT_REG) {
			    found_type == BTRFS_FILE_EXTENT_PREALLOC) {
				u64 ds, dl, cs, cl;
				u64 ds, dl, cs, cl;
				ds = btrfs_file_extent_disk_bytenr(src,
				ds = btrfs_file_extent_disk_bytenr(src,
								extent);
								extent);