btrfs-progs: check: Move imode_to_type function to check/common.h
authorQu Wenruo <wqu@suse.com>
Thu, 18 Jan 2018 07:38:45 +0000 (15:38 +0800)
committerDavid Sterba <dsterba@suse.com>
Fri, 2 Feb 2018 15:01:58 +0000 (16:01 +0100)
commit58a19f1ea7a6d19e03500faf444a6d46defc0bdb
tree14703291e37572125bfa3158f32b9a37c5b55419
parent96c6e1f0aa4c3fa23371d42b7e008f80faf1b471
btrfs-progs: check: Move imode_to_type function to check/common.h

This function is shared between original and lowmem mode, and it's small
enough, so move it to 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