]> 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)
commit908376811f9d40ee51add36616521b23aa8099af
tree5ebfe29a6aa6b47f869adb7bc84cc954b733102d
parent874a7dfb0ff4a7f29b5ed43e002ad8311eb5144d
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