btrfs: handle null fs_info in btrfs_panic()
authorEric Sandeen <sandeen@redhat.com>
Thu, 31 Jan 2013 00:54:55 +0000 (00:54 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Wed, 20 Feb 2013 17:59:18 +0000 (12:59 -0500)
commitaa43a17c21cf35329b1a495dd6876798dd8b016b
treed958b6d58305a2ea121613e8e89cd52ccfdbf513
parent5a01604783c23f28bd4212e839e79277193f974f
btrfs: handle null fs_info in btrfs_panic()

At least backref_tree_panic() can apparently pass
in a null fs_info, so handle that in __btrfs_panic
to get the message out on the console.

The btrfs_panic macro also uses fs_info, but that's
largely pointless; it's testing to see if
BTRFS_MOUNT_PANIC_ON_FATAL_ERROR is not set.
But if it *were* set, __btrfs_panic() would have,
well, paniced and we wouldn't be here, testing it!
So just BUG() at this point.

And since we only use fs_info once now, just use it
directly.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/ctree.h
fs/btrfs/super.c