mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
buf: Add sysctl flag CTLFLAG_TUN to loader tunable
The sysctl variable 'vfs.unmapped_buf_allowed' is actually a loader tunable. Add sysctl flag CTLFLAG_TUN to it so that `sysctl -T` will report it correctly. No functional change intended. Reviewed by: kib, imp MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D42113 (cherry picked from commit 31b94065300a76e52c26b8caec7256574d64a777)
This commit is contained in:
parent
e4f97a1ec7
commit
8c4eaac153
1 changed files with 2 additions and 1 deletions
|
|
@ -320,7 +320,8 @@ SYSCTL_COUNTER_U64(_vfs, OID_AUTO, notbufdflushes, CTLFLAG_RD, ¬bufdflushes,
|
|||
static long barrierwrites;
|
||||
SYSCTL_LONG(_vfs, OID_AUTO, barrierwrites, CTLFLAG_RW | CTLFLAG_STATS,
|
||||
&barrierwrites, 0, "Number of barrier writes");
|
||||
SYSCTL_INT(_vfs, OID_AUTO, unmapped_buf_allowed, CTLFLAG_RD,
|
||||
SYSCTL_INT(_vfs, OID_AUTO, unmapped_buf_allowed,
|
||||
CTLFLAG_RDTUN | CTLFLAG_NOFETCH,
|
||||
&unmapped_buf_allowed, 0,
|
||||
"Permit the use of the unmapped i/o");
|
||||
int maxbcachebuf = MAXBCACHEBUF;
|
||||
|
|
|
|||
Loading…
Reference in a new issue