Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349178
b: refs/heads/master
c: 192000d
h: refs/heads/master
v: v3
  • Loading branch information
Liu Bo authored and Josef Bacik committed Jan 24, 2013
1 parent c7c2285 commit 456009a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b0175117b9376a69978bbe80af26fb95dddbd53e
refs/heads/master: 192000dda22e02225772e862b92e7c09e5a17d08
5 changes: 5 additions & 0 deletions trunk/fs/btrfs/tree-log.c
Original file line number Diff line number Diff line change
Expand Up @@ -3357,6 +3357,11 @@ static int log_one_extent(struct btrfs_trans_handle *trans,
if (skip_csum)
return 0;

if (em->compress_type) {
csum_offset = 0;
csum_len = block_len;
}

/* block start is already adjusted for the file extent offset. */
ret = btrfs_lookup_csums_range(log->fs_info->csum_root,
em->block_start + csum_offset,
Expand Down

0 comments on commit 456009a

Please sign in to comment.