mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Default to not performing ufs_dirhash's extensive directory-block
sanity check after every directory modification. This check can be re-enabled at any time by setting the sysctl "vfs.ufs.dirhash_docheck" to 1. This group of sanity tests was there to ensure that any UFS_DIRHASH bugs could be caught by a panic before a potentially corrupted directory block would be written to disk. It has served its main purpose now, so disable it in the interest of performance. MFC after: 1 week
This commit is contained in:
parent
f02098e59c
commit
71fc5e11c7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85512
@ -72,7 +72,7 @@ SYSCTL_INT(_vfs_ufs, OID_AUTO, dirhash_maxmem, CTLFLAG_RW, &ufs_dirhashmaxmem,
|
||||
static int ufs_dirhashmem;
|
||||
SYSCTL_INT(_vfs_ufs, OID_AUTO, dirhash_mem, CTLFLAG_RD, &ufs_dirhashmem,
|
||||
0, "current dirhash memory usage");
|
||||
static int ufs_dirhashcheck = 1;
|
||||
static int ufs_dirhashcheck = 0;
|
||||
SYSCTL_INT(_vfs_ufs, OID_AUTO, dirhash_docheck, CTLFLAG_RW, &ufs_dirhashcheck,
|
||||
0, "enable extra sanity tests");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user