mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 02:21:16 +00:00
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>
This commit is contained in:
parent
e6138876ad
commit
6f1fed7753
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue