summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2000-11-20 00:39:04 +0000
committerrwatson <rwatson@FreeBSD.org>2000-11-20 00:39:04 +0000
commit4a8be80602526068ed41af6b0541c849a044cfaa (patch)
treeefa39fca6a52e16f6f1e3c6c6eb26aeff95e9f26
parentb2a8c568be5d6eb12450d95cf746ae26af274f4a (diff)
downloadFreeBSD-src-4a8be80602526068ed41af6b0541c849a044cfaa.zip
FreeBSD-src-4a8be80602526068ed41af6b0541c849a044cfaa.tar.gz
o Export dmmax ("Maximum size of a swap block") using SYSCTL_INT.
This removes a reason that systat requires setgid kmem. More to come.
-rw-r--r--sys/vm/swap_pager.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c
index a625bc8..e215149 100644
--- a/sys/vm/swap_pager.c
+++ b/sys/vm/swap_pager.c
@@ -184,6 +184,9 @@ static int dmmax_mask;
int nswap_lowat = 128; /* in pages, swap_pager_almost_full warn */
int nswap_hiwat = 512; /* in pages, swap_pager_almost_full warn */
+SYSCTL_INT(_vm, OID_AUTO, dmmax,
+ CTLFLAG_RD, &dmmax, 0, "Maximum size of a swap block");
+
static __inline void swp_sizecheck __P((void));
static void swp_pager_sync_iodone __P((struct buf *bp));
static void swp_pager_async_iodone __P((struct buf *bp));
OpenPOWER on IntegriCloud