btrfs-progs: check: repair inode orphan item in lowmem mode
authorSu Yue <suy.fnst@cn.fujitsu.com>
Mon, 28 Aug 2017 05:26:33 +0000 (13:26 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 Oct 2017 18:33:00 +0000 (20:33 +0200)
commit23482e871c7fe97d4b54bc3332ac2a445d406f7c
treec0cba89978c9a29424b5f66e8460dab2ae0d8960
parentb6cae7e4e4aa4f674625bad6f5334caa6976ddc7
btrfs-progs: check: repair inode orphan item in lowmem mode

Introduce repair_inode_orphan_item_lowmem() to add an orphan
item if the inode refs and nlink are both zero.

repair_inode_orphan_item_lowmem() is just a wrapper function
that calls btrfs_add_orphan_item().

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