btrfs-progs: check: repair block group accounting in lowmem mode
authorSu Yue <suy.fnst@cn.fujitsu.com>
Tue, 12 Sep 2017 03:56:30 +0000 (11:56 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 Oct 2017 18:33:01 +0000 (20:33 +0200)
commit3ebf6564cd7b26037890d53c8688ec2a03c01bc5
tree382d61b9dd324788b144d012e9537f7188d4dfae
parent2abbfd266afc97a31072894660e30e8dac525923
btrfs-progs: check: repair block group accounting in lowmem mode

Add a macro named BG_ACCOUNT_ERROR meaning that block group used size
does not equal the total.

After extent-tree repair, BG_ACCOUNT_ERROR should be fixed up.
Clean bits at end of check_chunks_and_extents_v2().

Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-check.c