Fix style and typo.

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2016-07-28 15:49:51 +00:00
parent 544e9b30a9
commit 2174a0c607

View File

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