Skip to contentSkip to conversation

Btrfs: don't lookup csums for prealloc extents

PATCH New Josef Bacik 1 participant 1 message Sep 26, 2012 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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,

---
 fs/btrfs/tree-log.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
fs/btrfs/tree-log.c +1 -2
index 09d7f15..806a8ff 100644
@@ -3023,8 +3023,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);
Signature · 1 line
1.7.7.6