]> git.hungrycats.org Git - linux/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)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Thu, 12 Nov 2015 03:37:38 +0000 (22:37 -0500)
commit4f57c712fdd0c2706042c8204c577ebd5e1994ae
treead82efb595fb6e803e66ad75040fef072dd97011
parentee90f924001ed2c8a38800df06f2c5cbc4c98c4c
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>
(cherry picked from commit 4734b7ed79e1230602927a38bc4d04dbe9dd09c1)
fs/btrfs/scrub.c