From: Stefan Behrens Date: Thu, 16 Oct 2014 15:48:48 +0000 (+0200) Subject: Btrfs: check_int: use the known block location X-Git-Tag: omap-for-v3.20/drop-legacy-3517~108^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f382e4653f06f4e285b7800f80e6548e026f90a8;p=pandora-kernel.git Btrfs: check_int: use the known block location The xfstest btrfs/014 which tests the balance operation caused issues with the check_int module. The attempt was made to use btrfs_map_block() to find the physical location for a written block. However, this was not at all needed since the location of the written block was known since a hook to submit_bio() was the reason for entering the check_int module. Additionally, after a block relocation it happened that btrfs_map_block() failed causing misleading error messages afterwards. This patch changes the check_int module to use the known information of the physical location from the bio. Reported-by: Wang Shilong Signed-off-by: Stefan Behrens Tested-by: Wang Shilong Signed-off-by: Chris Mason --- Reading git-diff-tree failed