btrfs-progs: check: lowmem: Fix extent item size false alert
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Tue, 21 Feb 2017 08:34:30 +0000 (16:34 +0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 8 Mar 2017 12:00:48 +0000 (13:00 +0100)
commit4a749360cdb55d196750bd7ea3591a3db7f90843
tree4b70a9912d02dab5b5c99330d3b081e5aef6f0c9
parenteec058075f8b90d5cfc98a003c0533b5bfc81ac0
btrfs-progs: check: lowmem: Fix extent item size false alert

If one extent item has no inline ref, btrfs lowmem mode check can give
false alert without outputting any error message.

The problem is lowmem mode always assumes that extent item has inline
refs, and when it encounters such case it flags the extent item has
wrong size, but doesn't output the error message.

Although we already have such image submitted, at the commit time due to
another bug in cmds-check return value, it doesn't detect it until that
bug is fixed.

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