Revert r236380

PR:		kern/166780
Requested by:	many
Approved by:	cperciva (implicit)
This commit is contained in:
Eitan Adler 2012-06-01 18:58:50 +00:00
parent b6de005505
commit 0a4a2b8e62
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=236417

View File

@ -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.");