summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_globals.c
diff options
context:
space:
mode:
authorMarco Benatto <mbenatto@redhat.com>2019-02-01 18:12:20 +0100
committerDarrick J. Wong <darrick.wong@oracle.com>2019-02-12 01:07:00 +0100
commitd519da41e2b789f2cbd705cd8cec0bb92be4838d (patch)
tree7a1c2826db60c4f907ba1f4d5ebe538f1a9acafd /fs/xfs/xfs_globals.c
parentxfs: remove duplicated xfs_defer.h (diff)
downloadlinux-d519da41e2b789f2cbd705cd8cec0bb92be4838d.tar.xz
linux-d519da41e2b789f2cbd705cd8cec0bb92be4838d.zip
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>
Diffstat (limited to '')
-rw-r--r--fs/xfs/xfs_globals.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_globals.c b/fs/xfs/xfs_globals.c
index 5169e84ae382..d0d377384120 100644
--- a/fs/xfs/xfs_globals.c
+++ b/fs/xfs/xfs_globals.c
@@ -16,7 +16,7 @@ xfs_param_t xfs_params = {
/* MIN DFLT MAX */
.sgid_inherit = { 0, 0, 1 },
.symlink_mode = { 0, 0, 1 },
- .panic_mask = { 0, 0, 255 },
+ .panic_mask = { 0, 0, 256 },
.error_level = { 0, 3, 11 },
.syncd_timer = { 1*100, 30*100, 7200*100},
.stats_clear = { 0, 0, 1 },