mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-23 22:01:08 +01:00
Revert r236380
PR: kern/166780 Requested by: many Approved by: cperciva (implicit)
This commit is contained in:
parent
b6de005505
commit
0a4a2b8e62
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=236417
@ -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.");
|
||||
|
Loading…
Reference in New Issue
Block a user