~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/fs/xfs/xfs_globals.c

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  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  */
 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,              XFS_PTAG_MASK},
 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         .blockgc_timer  = {     1,              300,            3600*24},
 33 };
 34 
 35 struct xfs_globals xfs_globals = {
 36         .log_recovery_delay     =       0,      /* no delay by default */
 37         .mount_delay            =       0,      /* no delay by default */
 38 #ifdef XFS_ASSERT_FATAL
 39         .bug_on_assert          =       true,   /* assert failures BUG() */
 40 #else
 41         .bug_on_assert          =       false,  /* assert failures WARN() */
 42 #endif
 43 #ifdef DEBUG
 44         .pwork_threads          =       -1,     /* automatic thread detection */
 45         .larp                   =       false,  /* log attribute replay */
 46 #endif
 47 
 48         /*
 49          * Leave this many record slots empty when bulk loading btrees.  By
 50          * default we load new btree leaf blocks 75% full.
 51          */
 52         .bload_leaf_slack       =       -1,
 53 
 54         /*
 55          * Leave this many key/ptr slots empty when bulk loading btrees.  By
 56          * default we load new btree node blocks 75% full.
 57          */
 58         .bload_node_slack       =       -1,
 59 };
 60 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php