btrfs-progs: check: Fix false alert about EXTENT_DATA that shouldn't be a hole
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Fri, 16 Jun 2017 01:43:22 +0000 (09:43 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Jun 2017 15:09:58 +0000 (17:09 +0200)
commit163ca0e431a72bc48c52c2fd9132e32616b9036a
treecd44fc1a2f8c14c73985e0f81e54c5de99b5e0b3
parent324d4c1857ac8282e838d1fe7c1a9b65b67f0d40
btrfs-progs: check: Fix false alert about EXTENT_DATA that shouldn't be a hole

Since the incompat feature NO_HOLES still allows us to have an explicit
hole file extent, current check is too strict and will cause false
alerts like:

  root 5 EXTENT_DATA[257, 0] shouldn't be hole

Fix it by removing the strict file hole extent check.

Link: https://www.spinics.net/lists/linux-btrfs/msg66374.html
Reported-by: Henk Slager <eye1tm@gmail.com>
Tested-by: Henk Slager <eye1tm@gmail.com>
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-check.c