• Z
    btrfs: scrub: setup all fields for sblock_to_check · 4734b7ed
    Zhao Lei 提交于
    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: NZhao Lei <zhaolei@cn.fujitsu.com>
    Signed-off-by: NChris Mason <clm@fb.com>
    4734b7ed
scrub.c 115.0 KB