btrfs-progs: check: delete wrong items in lowmem repair
authorSu Yue <suy.fnst@cn.fujitsu.com>
Fri, 1 Sep 2017 06:20:06 +0000 (14:20 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 Oct 2017 18:33:01 +0000 (20:33 +0200)
commite3541e93e8c31e019541161cabddc03165b2e26d
tree2e30675f8a7b8cf1a3cf5a03d207453df742d1f7
parent723427d7e6b7d0f7640524291983bc06a89bcd4e
btrfs-progs: check: delete wrong items in lowmem repair

Introduce delete_extent_tree_item() and repair_extent_item() to do
only deletion.

While checking the extent tree, just delete the wrong item.  For extent
item, free wrong backref. Otherwise, delete.  So the remaining items in
extent tree should be correct.

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