svn commit: r329837 - head/sys/kern
Mateusz Guzik
mjg at FreeBSD.org
Thu Feb 22 20:39:26 UTC 2018
Author: mjg
Date: Thu Feb 22 20:39:25 2018
New Revision: 329837
URL: https://svnweb.freebsd.org/changeset/base/329837
Log:
Fix up sysctl vfs.buffercache broken in r329612
Sample problem:
top: sysctl(vfs.bufspace...) expected 8, got 4
Reported by: O. Hartmann <ohartmann walstatt.org>
Modified:
head/sys/kern/vfs_bio.c
Modified: head/sys/kern/vfs_bio.c
==============================================================================
--- head/sys/kern/vfs_bio.c Thu Feb 22 20:10:23 2018 (r329836)
+++ head/sys/kern/vfs_bio.c Thu Feb 22 20:39:25 2018 (r329837)
@@ -423,7 +423,7 @@ sysctl_bufspace(SYSCTL_HANDLER_ARGS)
lvalue = 0;
for (i = 0; i < clean_domains; i++)
lvalue += bdclean[i].bd_bufspace;
- return (sysctl_handle_int(oidp, &lvalue, 0, req));
+ return (sysctl_handle_long(oidp, &lvalue, 0, req));
}
#endif
More information about the svn-src-all
mailing list