btrfs-progs: check: Export check global variables to check/common.h
authorQu Wenruo <wqu@suse.com>
Thu, 18 Jan 2018 07:31:53 +0000 (15:31 +0800)
committerDavid Sterba <dsterba@suse.com>
Fri, 2 Feb 2018 15:01:58 +0000 (16:01 +0100)
commit96c6e1f0aa4c3fa23371d42b7e008f80faf1b471
tree7495823d014383442dbcd5b53ebd79bd8c7a9490
parent5c9ac8dc48e766b93ec99e35548e1c161b4ab92b
btrfs-progs: check: Export check global variables to check/common.h

There are a dozen of variables which are used as "check global"
variables, like @total_csum_bytes or @no_holes.

These variables are used freely across the check code, however since
we're splitting check code, they need to be exported so they can be used
in other files.

This patch just export them and add declarations for them in
check/common.h.

Reviewed-by: Su Yue <suy.fnst@cn.fujitsu.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
check/common.h
check/main.c