1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-01 08:27:59 +00:00

o Export dmmax ("Maximum size of a swap block") using SYSCTL_INT.

This removes a reason that systat requires setgid kmem.  More to
  come.
This commit is contained in:
Robert Watson 2000-11-20 00:39:04 +00:00
parent affec73ebd
commit cee313c431
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68921

View File

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