File Index
Files and directories
Sign in
FILE

xfs_globals.c

File preview with syntax highlighting.

linux-6.19.14/fs/xfs/xfs_globals.c C
 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_error.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 blockgc_timer, which is measured
13 * in seconds.
14 */
15xfs_param_t xfs_params = {
16			  /*	MIN		DFLT		MAX	*/
17	.panic_mask	= {	0,		0,		XFS_PTAG_MASK},
18	.error_level	= {	0,		3,		11	},
19	.syncd_timer	= {	1*100,		30*100,		7200*100},
20	.stats_clear	= {	0,		0,		1	},
21	.inherit_sync	= {	0,		1,		1	},
22	.inherit_nodump	= {	0,		1,		1	},
23	.inherit_noatim = {	0,		1,		1	},
24	.inherit_nosym	= {	0,		0,		1	},
25	.rotorstep	= {	1,		1,		255	},
26	.inherit_nodfrg	= {	0,		1,		1	},
27	.fstrm_timer	= {	1,		30*100,		3600*100},
28	.blockgc_timer	= {	1,		300,		3600*24},
29};
30
31struct xfs_globals xfs_globals = {
32	.log_recovery_delay	=	0,	/* no delay by default */
33	.mount_delay		=	0,	/* no delay by default */
34#ifdef XFS_ASSERT_FATAL
35	.bug_on_assert		=	true,	/* assert failures BUG() */
36#else
37	.bug_on_assert		=	false,	/* assert failures WARN() */
38#endif
39#ifdef DEBUG
40	.pwork_threads		=	-1,	/* automatic thread detection */
41	.larp			=	false,	/* log attribute replay */
42#endif
43
44	/*
45	 * Leave this many record slots empty when bulk loading btrees.  By
46	 * default we load new btree leaf blocks 75% full.
47	 */
48	.bload_leaf_slack	=	-1,
49
50	/*
51	 * Leave this many key/ptr slots empty when bulk loading btrees.  By
52	 * default we load new btree node blocks 75% full.
53	 */
54	.bload_node_slack	=	-1,
55};
~/ Read-only file preview.