Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Feb 2018 20:39:26 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329837 - head/sys/kern
Message-ID:  <201802222039.w1MKdQIj026316@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802222039.w1MKdQIj026316>