]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: use right range to find checksum for compressed extents
authorLiu Bo <bo.li.liu@oracle.com>
Sun, 6 Jan 2013 03:38:22 +0000 (03:38 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Thu, 24 Jan 2013 17:51:17 +0000 (12:51 -0500)
commite9b7d8a8d5e8c34ee6781d3cabcb6cce46bde523
tree5ebfe29a6aa6b47f869adb7bc84cc954b733102d
parentdeef47be19ea3e3303bd4c2682d6c4eda658821e
Btrfs: use right range to find checksum for compressed extents

For compressed extents, the range of checksum is covered by disk length,
and the disk length is different with ram length, so we need to use disk
length instead to get us the right checksum.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/tree-log.c