btrfs-progs: check: repair inode nlink in lowmem
commit3cfd3f608c9f4fbe5dbeef2636de77a8a8ccbae3
authorSu Yue <suy.fnst@cn.fujitsu.com>
Tue, 29 Aug 2017 03:23:46 +0000 (29 11:23 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 Oct 2017 18:33:00 +0000 (16 20:33 +0200)
tree645cd83b608476dbcaa5305d20f798bf1951f452
parent2194fab07178e2bc3d6b62f8e4247baaf6308620
btrfs-progs: check: repair inode nlink in lowmem

New function repair_inode_nlinks_lowmem() sets nlink of the inode to refs.

If refs equals 0, move the inode to lost+found and set refs to 1
initially.

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