btrfs-progs: check: adjustments for further repair
authorSu Yue <suy.fnst@cn.fujitsu.com>
Mon, 28 Aug 2017 07:08:09 +0000 (15:08 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 Oct 2017 18:33:00 +0000 (20:33 +0200)
commit3efc459166ad8d104912ec06c4ec9e0db6b7ef79
treeb41c3099ccdd1b1aae298c1841ceb008ed283aff
parent564901eac7a43e85c01e5da90dbd7af6507cc724
btrfs-progs: check: adjustments for further repair

For code reuse, btrfs_insert_dir_item() now calls
inserts_with_overflow() even if the dir_item existed.

Add a parameter @ignore_existed to btrfs_add_link().
If @ignore_existed is not zero, btrfs_add_link() continues to do link.

Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-check.c
convert/main.c
ctree.h
dir-item.c
inode.c