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