svn commit: r236417 - head/sys/vm

Eitan Adler eadler at FreeBSD.org
Fri Jun 1 18:58:51 UTC 2012


Author: eadler
Date: Fri Jun  1 18:58:50 2012
New Revision: 236417
URL: http://svn.freebsd.org/changeset/base/236417

Log:
  Revert r236380
  
  PR:		kern/166780
  Requested by:	many
  Approved by:	cperciva (implicit)

Modified:
  head/sys/vm/swap_pager.c

Modified: head/sys/vm/swap_pager.c
==============================================================================
--- head/sys/vm/swap_pager.c	Fri Jun  1 18:57:57 2012	(r236416)
+++ head/sys/vm/swap_pager.c	Fri Jun  1 18:58:50 2012	(r236417)
@@ -2692,18 +2692,3 @@ swaponvp(struct thread *td, struct vnode
 	    NODEV);
 	return (0);
 }
-
-static int
-sysctl_vm_swap_free(SYSCTL_HANDLER_ARGS) {
-	int swap_free, used;
-	int total;
-
-	swap_pager_status(&total, &used);
-
-	swap_free = (total - used) * PAGE_SIZE;
-	return SYSCTL_OUT(req, &swap_free, sizeof(swap_free));
-}
-
-SYSCTL_OID(_vm, OID_AUTO, swap_free, CTLTYPE_INT|CTLFLAG_RD|CTLFLAG_MPSAFE,
-		NULL, 0, sysctl_vm_swap_free, "Q",
-		"Blocks of free swap storage.");


More information about the svn-src-head mailing list