]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit564425907c54e6aa756647c04d4a73aa9e17bb01
tree8189e23882ebcf6f8634a626c0d9db4f41df1c78
parentbf9e2ec0fec5dc44122a5a31e479280e36ae18f5
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