Btrfs: fix csum search offset/length calculation in log tree
authorFilipe David Borba Manana <fdmanana@gmail.com>
Mon, 28 Oct 2013 16:30:29 +0000 (16:30 +0000)
committerChris Mason <chris.mason@fusionio.com>
Tue, 12 Nov 2013 03:10:42 +0000 (22:10 -0500)
We were setting the csums search offset and length to the right values if
the extent is compressed, but later on right before doing the csums lookup
we were overriding these two parameters regardless of compression being
set or not for the extent.

Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/tree-log.c

Simple merge