Fix style and typo.
Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
544e9b30a9
commit
2174a0c607
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=303446
@ -390,8 +390,8 @@ static int dmmax;
|
||||
static int nswap_lowat = 128; /* in pages, swap_pager_almost_full warn */
|
||||
static 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");
|
||||
SYSCTL_INT(_vm, OID_AUTO, dmmax, CTLFLAG_RD, &dmmax, 0,
|
||||
"Maximum size of a swap block");
|
||||
|
||||
static void swp_sizecheck(void);
|
||||
static void swp_pager_async_iodone(struct buf *bp);
|
||||
@ -2432,7 +2432,7 @@ swapgeom_acquire(struct g_consumer *cp)
|
||||
|
||||
/*
|
||||
* Remove a reference from the g_consumer. Post a close event if
|
||||
* all referneces go away.
|
||||
* all references go away.
|
||||
*/
|
||||
static void
|
||||
swapgeom_release(struct g_consumer *cp, struct swdevt *sp)
|
||||
@ -2598,7 +2598,7 @@ swapongeom_ev(void *arg, int flags)
|
||||
if (gp == NULL)
|
||||
gp = g_new_geomf(&g_swap_class, "swap");
|
||||
cp = g_new_consumer(gp);
|
||||
cp->index = 1; /* Number of active I/Os, plus one for being active. */
|
||||
cp->index = 1; /* Number of active I/Os, plus one for being active. */
|
||||
cp->flags |= G_CF_DIRECT_SEND | G_CF_DIRECT_RECEIVE;
|
||||
g_attach(cp, pp);
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user