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:
parent
affec73ebd
commit
cee313c431
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68921
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user