xfs: Introduce XFS_PTAG_VERIFIER_ERROR panic mask
authorMarco Benatto <mbenatto@redhat.com>
Fri, 1 Feb 2019 17:12:20 +0000 (09:12 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 12 Feb 2019 00:07:00 +0000 (16:07 -0800)
commitd519da41e2b789f2cbd705cd8cec0bb92be4838d
tree7a1c2826db60c4f907ba1f4d5ebe538f1a9acafd
parente88db81645d36f945d11bd73ffff31dad148eaf8
xfs: Introduce XFS_PTAG_VERIFIER_ERROR panic mask

Currently we have a few PTAGs in place allowing us to transform a filesystem
error in a BUG() call.  However, we don't have a panic tag for corrupt
metadata, so introduce XFS_PTAG_VERIFIER_ERROR so that the administrator can
use the fs.xfs.panic_mask sysctl knob to convert any error detected by buffer
verifiers into a kernel panic.

Signed-off-by: Marco Benatto <mbenatto@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
[darrick: light editing of commit message]
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Documentation/filesystems/xfs.txt
fs/xfs/xfs_error.c
fs/xfs/xfs_error.h
fs/xfs/xfs_globals.c