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:12:02 +0000 (20:12 -0700)
commit75f93474507a99f8be8000cb0f33a60d488298d4
treeb572b9aa82f7b4430d35ef31697da62127b2656e
parent4f850fdfbb90c57178e24e9e6c9fc32d18cc23e1
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