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)
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

Simple merge