]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix check-integrity to look at the referenced data properly
authorJosef Bacik <jbacik@fusionio.com>
Thu, 14 Nov 2013 02:11:49 +0000 (21:11 -0500)
committerChris Mason <clm@fb.com>
Tue, 28 Jan 2014 21:19:21 +0000 (13:19 -0800)
commite0400576d746b8d6ace98f9826c438f36492d7ee
treec25250525b3580d0e6652e6053ad54d7bf97b26a
parent83032deb737b5df86b9182cacb54a5d3286daea1
Btrfs: fix check-integrity to look at the referenced data properly

We were looking at file_extent_num_bytes unconditionally when looking at
referenced data bytes, but this isn't correct for compression.  Fix this by
checking the compression of the file extent we are and setting num_bytes to
disk_num_bytes in the case of compression so that we are marking the proper
bytes as referenced.  This fixes check_int_data freaking out when running
btrfs/004.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/check-integrity.c
fs/btrfs/ctree.h