diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2018-02-22 20:39:25 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2018-02-22 20:39:25 +0000 |
commit | a0c722bdbfd7402fb40fd0cf5e9301f540a8d161 (patch) | |
tree | 7877a9de712b19bbad9fb2689b66a0924122348d /sys/kern/vfs_bio.c | |
parent | 66964bbc36334eade58778fcb50f13f6d4d6326b (diff) | |
download | src-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.c | 2 |
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 |