]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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 16:26:02 +0000 (09:26 -0700)
commit795dae3bdf2ecd7d325264e5527c76a647590f43
treefd598ea5f38006a561d20f9d75549a5f592f4d87
parent3df6391ba957b799fa30cb558d924aee647ccd34
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