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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 17:04:34 +0000 (10:04 -0700)
commitd50597f63bebaf9de515398c95f0ed4b88ea5224
treeff991a07077d8e8732b53faa8e0cd163dea3c8e9
parent1c7b6ea87236a0c10943379a6476e2354c133cab
Btrfs: don't drop path when printing out tree errors in scrub

commit d8fe29e9dea8d7d61fd140d8779326856478fc62 upstream.

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,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/scrub.c