btrfs-progs: Add repair function for discount file extent hole.
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Fri, 2 Jan 2015 07:12:33 +0000 (15:12 +0800)
committerDavid Sterba <dsterba@suse.cz>
Mon, 2 Feb 2015 13:16:38 +0000 (14:16 +0100)
commit16584ea51eeb836f6a82b44d15cbc40de1e4da5f
tree2ebc7ea46cd48895c5493f89848723a07b501b0c
parentad03f840f0d2fabba682941db685b2c767a0c536
btrfs-progs: Add repair function for discount file extent hole.

Since orphan extents are handled in previous patches, now just punch
holes to fill the file extents hole.

Also since now btrfsck is aware of whether the inode has orphan file
extent, allow repair_inode_no_item() to determine filetype according to
orphan file extent.

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