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>
This commit is contained in:
Mateusz Guzik 2018-02-22 20:39:25 +00:00
parent 66964bbc36
commit a0c722bdbf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329837

View File

@ -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