Btrfs: fix scrub_print_warning to handle skinny metadata extents
authorLiu Bo <bo.li.liu@oracle.com>
Mon, 9 Jun 2014 02:54:07 +0000 (10:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Jul 2014 03:09:46 +0000 (20:09 -0700)
commitb2ac30236228d605fa14fbf5640ee7dc6b99b550
treedaf5488a0a45607980d90512f9bff9db65bc752d
parentd6f5d5fd0c1de1a443e3a9c3d439dd5d760f11cc
Btrfs: fix scrub_print_warning to handle skinny metadata extents

commit 6eda71d0c030af0fc2f68aaa676e6d445600855b upstream.

The skinny extents are intepreted incorrectly in scrub_print_warning(),
and end up hitting the BUG() in btrfs_extent_inline_ref_size.

Reported-by: Konstantinos Skarlatos <k.skarlatos@gmail.com>
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Chris Mason <clm@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/backref.c
fs/btrfs/backref.h
fs/btrfs/scrub.c