Btrfs: don't drop path when printing out tree errors in scrub
authorJosef Bacik <jbacik@fusionio.com>
Fri, 29 Mar 2013 14:09:34 +0000 (08:09 -0600)
committerChris Mason <chris.mason@fusionio.com>
Fri, 29 Mar 2013 14:18:59 +0000 (10:18 -0400)
commitd8fe29e9dea8d7d61fd140d8779326856478fc62
treefb5867b3c130d23305a2fec87eed49708d5e7cdc
parent82d130ff390be67d980d8b6f39e921c0b1d8d8e0
Btrfs: don't drop path when printing out tree errors in scrub

A user reported a panic where we were panicing somewhere in
tree_backref_for_extent from scrub_print_warning.  He only captured the trace
but looking at scrub_print_warning we drop the path right before we mess with
the extent buffer to print out a bunch of stuff, which isn't right.  So fix this
by dropping the path after we use the eb if we need to.  Thanks,

Cc: stable@vger.kernel.org
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/scrub.c