btrfs-progs: check: introduce repair_extent_data_item()
authorSu Yue <suy.fnst@cn.fujitsu.com>
Fri, 1 Sep 2017 06:30:02 +0000 (14:30 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 Oct 2017 18:33:01 +0000 (20:33 +0200)
commit2abbfd266afc97a31072894660e30e8dac525923
tree25629f6c555c629e96ed580526397be193002693
parent4eb10e473e447f094c390577a1ae91896dde8a2e
btrfs-progs: check: introduce repair_extent_data_item()

The only thing repair_extent_data_item() does is that it adds backref of the
tree_block. Just like what original mode does:

It first searches the corresponding extent item.

1. If the extent item exists but backref is missing, add one backref to the
   extent.
2. Found nothing, just add an extent item and add one backref.

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