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
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to