Dave Chinner | 0b61f8a | 2018-06-05 19:42:14 -0700 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | /* |
Nathan Scott | 7b71876 | 2005-11-02 14:58:39 +1100 | [diff] [blame] | 3 | * Copyright (c) 2000-2005 Silicon Graphics, Inc. |
| 4 | * All Rights Reserved. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | #include "xfs.h" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | |
| 8 | /* |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | * Tunable XFS parameters. xfs_params is required even when CONFIG_SYSCTL=n, |
| 10 | * other XFS code uses these values. Times are measured in centisecs (i.e. |
Darrick J. Wong | 9669f51 | 2021-01-22 16:48:43 -0800 | [diff] [blame] | 11 | * 100ths of a second) with the exception of blockgc_timer, which is measured |
| 12 | * in seconds. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | */ |
| 14 | xfs_param_t xfs_params = { |
| 15 | /* MIN DFLT MAX */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | .sgid_inherit = { 0, 0, 1 }, |
| 17 | .symlink_mode = { 0, 0, 1 }, |
Marco Benatto | d519da4 | 2019-02-01 09:12:20 -0800 | [diff] [blame] | 18 | .panic_mask = { 0, 0, 256 }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | .error_level = { 0, 3, 11 }, |
| 20 | .syncd_timer = { 1*100, 30*100, 7200*100}, |
| 21 | .stats_clear = { 0, 0, 1 }, |
| 22 | .inherit_sync = { 0, 1, 1 }, |
| 23 | .inherit_nodump = { 0, 1, 1 }, |
| 24 | .inherit_noatim = { 0, 1, 1 }, |
| 25 | .xfs_buf_timer = { 100/2, 1*100, 30*100 }, |
| 26 | .xfs_buf_age = { 1*100, 15*100, 7200*100}, |
| 27 | .inherit_nosym = { 0, 0, 1 }, |
| 28 | .rotorstep = { 1, 1, 255 }, |
Barry Naujok | d3446ea | 2006-06-09 14:54:19 +1000 | [diff] [blame] | 29 | .inherit_nodfrg = { 0, 1, 1 }, |
David Chinner | 8da22d7 | 2007-08-16 15:20:56 +1000 | [diff] [blame] | 30 | .fstrm_timer = { 1, 30*100, 3600*100}, |
Darrick J. Wong | 9669f51 | 2021-01-22 16:48:43 -0800 | [diff] [blame] | 31 | .blockgc_timer = { 1, 300, 3600*24}, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 32 | }; |
Brian Foster | 2e22717 | 2014-09-09 11:56:13 +1000 | [diff] [blame] | 33 | |
| 34 | struct xfs_globals xfs_globals = { |
| 35 | .log_recovery_delay = 0, /* no delay by default */ |
Dave Chinner | dae5cd8 | 2018-05-10 21:50:23 -0700 | [diff] [blame] | 36 | .mount_delay = 0, /* no delay by default */ |
Brian Foster | 1040960e | 2017-06-14 21:29:13 -0700 | [diff] [blame] | 37 | #ifdef XFS_ASSERT_FATAL |
| 38 | .bug_on_assert = true, /* assert failures BUG() */ |
| 39 | #else |
| 40 | .bug_on_assert = false, /* assert failures WARN() */ |
| 41 | #endif |
Darrick J. Wong | 4078671 | 2019-07-03 07:33:26 -0700 | [diff] [blame] | 42 | #ifdef DEBUG |
| 43 | .pwork_threads = -1, /* automatic thread detection */ |
| 44 | #endif |
Brian Foster | 2e22717 | 2014-09-09 11:56:13 +1000 | [diff] [blame] | 45 | }; |