// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2001-2005 Silicon Graphics, Inc. * All Rights Reserved. */ #ifndef __XFS_SYSCTL_H__ #define __XFS_SYSCTL_H__ #include <linux/sysctl.h> /* * Tunable xfs parameters */ xfs_sysctl_val_t; xfs_param_t; /* * xfs_error_level: * * How much error reporting will be done when internal problems are * encountered. These problems normally return an EFSCORRUPTED to their * caller, with no other information reported. * * 0 No error reports * 1 Report EFSCORRUPTED errors that will cause a filesystem shutdown * 5 Report all EFSCORRUPTED errors (all of the above errors, plus any * additional errors that are known to not cause shutdowns) * * xfs_panic_mask bit 0x8 turns the error reports into panics */ enum { … }; extern xfs_param_t xfs_params; struct xfs_globals { … }; extern struct xfs_globals xfs_globals; #ifdef CONFIG_SYSCTL extern int xfs_sysctl_register(void); extern void xfs_sysctl_unregister(void); #else #define xfs_sysctl_register … #define xfs_sysctl_unregister … #endif /* CONFIG_SYSCTL */ #endif /* __XFS_SYSCTL_H__ */