aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/vfs_bio.c
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2018-02-22 20:39:25 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2018-02-22 20:39:25 +0000
commita0c722bdbfd7402fb40fd0cf5e9301f540a8d161 (patch)
tree7877a9de712b19bbad9fb2689b66a0924122348d /sys/kern/vfs_bio.c
parent66964bbc36334eade58778fcb50f13f6d4d6326b (diff)
downloadsrc-a0c722bdbfd7402fb40fd0cf5e9301f540a8d161.tar.gz
src-a0c722bdbfd7402fb40fd0cf5e9301f540a8d161.zip
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>
Notes
Notes: svn path=/head/; revision=329837
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r--sys/kern/vfs_bio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index a2a1736a24f4..7cb6aa15ddc5 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -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