btrfs-progs: check: introduce function to find dir_item
authorLu Fengqi <lufq.fnst@cn.fujitsu.com>
Thu, 21 Jul 2016 05:51:51 +0000 (13:51 +0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 14 Dec 2016 14:06:33 +0000 (15:06 +0100)
commit7c7deecda90fb69d207804f6b5bd42526724c89e
tree7d5ec5d2824339eb815a661660693ead02960870
parentc00278a9e8c72583105a29409809d43ca425dd00
btrfs-progs: check: introduce function to find dir_item

Introduce a new function find_dir_item() to find DIR_ITEM for the given
key, and check it with the specified INODE_REF/INODE_EXTREF match.

Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-check.c