btrfs: scrub: setup all fields for sblock_to_check
authorZhao Lei <zhaolei@cn.fujitsu.com>
Wed, 19 Aug 2015 14:39:18 +0000 (22:39 +0800)
committerChris Mason <clm@fb.com>
Wed, 11 Nov 2015 03:27:00 +0000 (19:27 -0800)
commit4734b7ed79e1230602927a38bc4d04dbe9dd09c1
tree8189e23882ebcf6f8634a626c0d9db4f41df1c78
parent9799d2c32bef6fba098fbef763002bc8d4851a2c
btrfs: scrub: setup all fields for sblock_to_check

scrub_setup_recheck_block() isn't setup all necessary fields for
sblock_to_check because history reason.

So current code need more arguments in severial functions,
and more local variables, just to passing these lacked values to
necessary place.

This patch setup above fields to sblock_to_check in
scrub_setup_recheck_block(), for:
1: more cleanup for function arg, local variable
2: to make sblock_to_check complete, then we can use sblock_to_check
   without concern about some uninitialized member.

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