xfs: allow setting full range of panic tags
authorDonald Douwsma <ddouwsma@redhat.com>
Wed, 8 Feb 2023 16:59:56 +0000 (08:59 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 10 Feb 2023 02:36:17 +0000 (18:36 -0800)
commit167ce4cbfa370114fee61ad5b58e401d95e2d5cd
tree90c95038e347584381ab0a7106372ad33dab93d4
parentc85007e2e3942da1f9361e4b5a9388ea3a8dcc5b
xfs: allow setting full range of panic tags

xfs will not allow combining other panic masks with
XFS_PTAG_VERIFIER_ERROR.

 # sysctl fs.xfs.panic_mask=511
 sysctl: setting key "fs.xfs.panic_mask": Invalid argument
 fs.xfs.panic_mask = 511

Update to the maximum value that can be set to allow the full range of
masks. Do this using a mask of possible values to prevent this happening
again as suggested by Darrick.

Fixes: d519da41e2b7 ("xfs: Introduce XFS_PTAG_VERIFIER_ERROR panic mask")
Signed-off-by: Donald Douwsma <ddouwsma@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Documentation/admin-guide/xfs.rst
fs/xfs/xfs_error.h
fs/xfs/xfs_globals.c