XFS_ERRLEVEL_LOW:       1
                XFS_ERRLEVEL_HIGH:      5
 
-  fs.xfs.panic_mask            (Min: 0  Default: 0  Max: 256)
+  fs.xfs.panic_mask            (Min: 0  Default: 0  Max: 511)
        Causes certain error conditions to call BUG(). Value is a bitmask;
        OR together the tags which represent errors which should cause panics:
 
 
 
 /*
  * XFS panic tags -- allow a call to xfs_alert_tag() be turned into
- *                     a panic by setting xfs_panic_mask in a sysctl.
+ *                     a panic by setting fs.xfs.panic_mask in a sysctl.
  */
 #define                XFS_NO_PTAG                     0u
 #define                XFS_PTAG_IFLUSH                 (1u << 0)
 #define                XFS_PTAG_FSBLOCK_ZERO           (1u << 7)
 #define                XFS_PTAG_VERIFIER_ERROR         (1u << 8)
 
+#define                XFS_PTAG_MASK   (XFS_PTAG_IFLUSH | \
+                                XFS_PTAG_LOGRES | \
+                                XFS_PTAG_AILDELETE | \
+                                XFS_PTAG_ERROR_REPORT | \
+                                XFS_PTAG_SHUTDOWN_CORRUPT | \
+                                XFS_PTAG_SHUTDOWN_IOERROR | \
+                                XFS_PTAG_SHUTDOWN_LOGERROR | \
+                                XFS_PTAG_FSBLOCK_ZERO | \
+                                XFS_PTAG_VERIFIER_ERROR)
+
 #define XFS_PTAG_STRINGS \
        { XFS_NO_PTAG,                  "none" }, \
        { XFS_PTAG_IFLUSH,              "iflush" }, \
 
  * All Rights Reserved.
  */
 #include "xfs.h"
+#include "xfs_error.h"
 
 /*
  * Tunable XFS parameters.  xfs_params is required even when CONFIG_SYSCTL=n,
                          /*    MIN             DFLT            MAX     */
        .sgid_inherit   = {     0,              0,              1       },
        .symlink_mode   = {     0,              0,              1       },
-       .panic_mask     = {     0,              0,              256     },
+       .panic_mask     = {     0,              0,              XFS_PTAG_MASK},
        .error_level    = {     0,              3,              11      },
        .syncd_timer    = {     1*100,          30*100,         7200*100},
        .stats_clear    = {     0,              0,              1       },