From: Jeff Mahoney Date: Tue, 4 Oct 2011 03:22:31 +0000 (-0400) Subject: btrfs: Add btrfs_panic() X-Git-Tag: v3.4-rc1~22^2~13^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c3429300181be44b30f9f017d53dc717da56caa;p=pandora-kernel.git btrfs: Add btrfs_panic() As part of the effort to eliminate BUG_ON as an error handling technique, we need to determine which errors are actual logic errors, which are on-disk corruption, and which are normal runtime errors e.g. -ENOMEM. Annotating these error cases is helpful to understand and report them. This patch adds a btrfs_panic() routine that will either panic or BUG depending on the new -ofatal_errors={panic,bug} mount option. Since there are still so many BUG_ONs, it defaults to BUG for now but I expect that to change once the error handling effort has made significant progress. Signed-off-by: Jeff Mahoney --- Reading git-diff-tree failed