btrfs: Use scrub_checksum_data and scrub_checksum_tree_block for scrub_recheck_block_...
authorZhao Lei <zhaolei@cn.fujitsu.com>
Mon, 24 Aug 2015 13:18:02 +0000 (21:18 +0800)
committerChris Mason <clm@fb.com>
Wed, 11 Nov 2015 03:27:06 +0000 (19:27 -0800)
commitba7cf9882bd25bed77aad7dd8865e80c7ae0070a
tree34c4d935046db8308637d270552162fe992647ba
parent772d233f5dec86e38a96e58cc995e7b04ab4ec68
btrfs: Use scrub_checksum_data and scrub_checksum_tree_block for scrub_recheck_block_checksum

We can use existing scrub_checksum_data() and scrub_checksum_tree_block()
for scrub_recheck_block_checksum(), instead of write duplicated code.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/scrub.c