btrfs-progs: check: Move lowmem check code to its own check/lowmem.[ch]
authorQu Wenruo <wqu@suse.com>
Thu, 1 Feb 2018 05:37:31 +0000 (13:37 +0800)
committerDavid Sterba <dsterba@suse.com>
Fri, 2 Feb 2018 15:01:59 +0000 (16:01 +0100)
commitb8d706e58e69a4782cae111049636e439db86f44
tree33beea7aac23b99d91aa201235c72b901004268e
parent5dade4b9514cbb765c9c2905172bb371b7479a77
btrfs-progs: check: Move lowmem check code to its own check/lowmem.[ch]

Since lowmem mode code is highly internally connected, it's pretty hard to
move them piece by piece.
In theory it's possible to move part of the functions and temporarily
export them, but it will just cause extra temporarily modifications.

So this patch moves the whole lowmem check part into its own
check/lowmem.[ch].

Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Makefile
check/lowmem.c [new file with mode: 0644]
check/lowmem.h
check/main.c