btrfs-progs: check: Move count_csum_range function to check/common.c
authorQu Wenruo <wqu@suse.com>
Thu, 18 Jan 2018 07:49:39 +0000 (15:49 +0800)
committerDavid Sterba <dsterba@suse.com>
Fri, 2 Feb 2018 15:01:58 +0000 (16:01 +0100)
commitb695ef1ddcab5832685f381e9b4ab0d2584baf4c
tree99bf68c6459ebe1132f3dbc93522b3e271e20b25
parentd1b55330c249bc47983b802908240723b0e534e3
btrfs-progs: check: Move count_csum_range function to check/common.c

Despite of moving it to check/common.c, also:

1) Add extra comment of the function
2) Change @root parameter to @fs_info
   Since @root is never used, csum_root is picked from fs_info anyway.

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>
Makefile
check/common.c [new file with mode: 0644]
check/common.h
check/main.c