From 0a4a2b8e620ea28519859044f61c6d006ee0b8bd Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Fri, 1 Jun 2012 18:58:50 +0000 Subject: [PATCH] Revert r236380 PR: kern/166780 Requested by: many Approved by: cperciva (implicit) --- sys/vm/swap_pager.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index ac7c7db1693b..be999cc8c13e 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -2692,18 +2692,3 @@ swaponvp(struct thread *td, struct vnode *vp, u_long nblks) 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.");