1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00

Move the reduction by one of the syncache limit after the zone has been

allocated.

Reviewed by:    sam (mentor)
Obtained from:  DragonFlyBSD rev 1.6 (hsu)
This commit is contained in:
Andre Oppermann 2004-01-22 23:14:48 +00:00
parent 73080de2be
commit 1ddba8d63e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124848

View File

@ -255,10 +255,10 @@ syncache_init(void)
* more entry than cache limit, so a new entry can bump out an
* older one.
*/
tcp_syncache.cache_limit -= 1;
tcp_syncache.zone = uma_zcreate("syncache", sizeof(struct syncache),
NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE);
uma_zone_set_max(tcp_syncache.zone, tcp_syncache.cache_limit);
tcp_syncache.cache_limit -= 1;
}
static void