Btrfs: fix runtime warning in check-integrity check data mode
authorStefan Behrens <sbehrens@giantdisaster.de>
Tue, 24 Apr 2012 16:10:16 +0000 (18:10 +0200)
committerJosef Bacik <josef@redhat.com>
Wed, 30 May 2012 14:23:43 +0000 (10:23 -0400)
commit86ff7ffce0b93aed14df4c8dcedd05bb5e2fdfbc
tree2d770c05a6d4539a0defe9a43449362383109b10
parent3d136a1131c66f7d26fb171e4c5b0b8baacd3129
Btrfs: fix runtime warning in check-integrity check data mode

If a file_extent_item was located at the very end of a leaf and there was
not enough space to hold a full item, but there was enough space to hold
one of type BTRFS_FILE_EXTENT_INLINE or PREALLOC, and it was only such a
short item, a warning was printed anyway. This check is now fixed.

Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
fs/btrfs/check-integrity.c