xref: /OK3568_Linux_fs/kernel/fs/xfs/xfs_globals.c (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun // SPDX-License-Identifier: GPL-2.0
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * Copyright (c) 2000-2005 Silicon Graphics, Inc.
4*4882a593Smuzhiyun  * All Rights Reserved.
5*4882a593Smuzhiyun  */
6*4882a593Smuzhiyun #include "xfs.h"
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun /*
9*4882a593Smuzhiyun  * Tunable XFS parameters.  xfs_params is required even when CONFIG_SYSCTL=n,
10*4882a593Smuzhiyun  * other XFS code uses these values.  Times are measured in centisecs (i.e.
11*4882a593Smuzhiyun  * 100ths of a second) with the exception of eofb_timer and cowb_timer, which
12*4882a593Smuzhiyun  * are measured in seconds.
13*4882a593Smuzhiyun  */
14*4882a593Smuzhiyun xfs_param_t xfs_params = {
15*4882a593Smuzhiyun 			  /*	MIN		DFLT		MAX	*/
16*4882a593Smuzhiyun 	.sgid_inherit	= {	0,		0,		1	},
17*4882a593Smuzhiyun 	.symlink_mode	= {	0,		0,		1	},
18*4882a593Smuzhiyun 	.panic_mask	= {	0,		0,		256	},
19*4882a593Smuzhiyun 	.error_level	= {	0,		3,		11	},
20*4882a593Smuzhiyun 	.syncd_timer	= {	1*100,		30*100,		7200*100},
21*4882a593Smuzhiyun 	.stats_clear	= {	0,		0,		1	},
22*4882a593Smuzhiyun 	.inherit_sync	= {	0,		1,		1	},
23*4882a593Smuzhiyun 	.inherit_nodump	= {	0,		1,		1	},
24*4882a593Smuzhiyun 	.inherit_noatim = {	0,		1,		1	},
25*4882a593Smuzhiyun 	.xfs_buf_timer	= {	100/2,		1*100,		30*100	},
26*4882a593Smuzhiyun 	.xfs_buf_age	= {	1*100,		15*100,		7200*100},
27*4882a593Smuzhiyun 	.inherit_nosym	= {	0,		0,		1	},
28*4882a593Smuzhiyun 	.rotorstep	= {	1,		1,		255	},
29*4882a593Smuzhiyun 	.inherit_nodfrg	= {	0,		1,		1	},
30*4882a593Smuzhiyun 	.fstrm_timer	= {	1,		30*100,		3600*100},
31*4882a593Smuzhiyun 	.eofb_timer	= {	1,		300,		3600*24},
32*4882a593Smuzhiyun 	.cowb_timer	= {	1,		1800,		3600*24},
33*4882a593Smuzhiyun };
34*4882a593Smuzhiyun 
35*4882a593Smuzhiyun struct xfs_globals xfs_globals = {
36*4882a593Smuzhiyun 	.log_recovery_delay	=	0,	/* no delay by default */
37*4882a593Smuzhiyun 	.mount_delay		=	0,	/* no delay by default */
38*4882a593Smuzhiyun #ifdef XFS_ASSERT_FATAL
39*4882a593Smuzhiyun 	.bug_on_assert		=	true,	/* assert failures BUG() */
40*4882a593Smuzhiyun #else
41*4882a593Smuzhiyun 	.bug_on_assert		=	false,	/* assert failures WARN() */
42*4882a593Smuzhiyun #endif
43*4882a593Smuzhiyun #ifdef DEBUG
44*4882a593Smuzhiyun 	.pwork_threads		=	-1,	/* automatic thread detection */
45*4882a593Smuzhiyun #endif
46*4882a593Smuzhiyun };
47