From: Josef Bacik Date: Thu, 14 Nov 2013 02:11:49 +0000 (-0500) Subject: Btrfs: fix check-integrity to look at the referenced data properly X-Git-Tag: v3.14-rc1~29^2~147 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e20d6c5ba38d066c7dc0f7d3b68da14b9ae7fe37;p=pandora-kernel.git 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 Signed-off-by: Chris Mason --- Reading git-diff-tree failed