PERFORCE change 122693 for review
Marko Zec
zec at FreeBSD.org
Mon Jul 2 01:28:52 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=122693
Change 122693 by zec at zec_tpx32 on 2007/07/02 01:28:33
Cosmetic change.
Affected files ...
.. //depot/projects/vimage/src/sys/netinet/tcp_hostcache.c#13 edit
Differences ...
==== //depot/projects/vimage/src/sys/netinet/tcp_hostcache.c#13 (text+ko) ====
@@ -222,17 +222,16 @@
NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0);
uma_zone_set_max(V_tcp_hostcache.zone, V_tcp_hostcache.cache_limit);
+#ifdef VIMAGE
+ if (curvnet != &vnet_0)
+ return;
+#endif
+
/*
* Set up periodic cache cleanup.
*/
-#ifdef VIMAGE
- if (curvnet == &vnet_0) {
-#endif
callout_init(&tcp_hc_callout, CALLOUT_MPSAFE);
callout_reset(&tcp_hc_callout, V_tcp_hostcache.prune * hz, tcp_hc_purge, 0);
-#ifdef VIMAGE
- }
-#endif
}
/*
More information about the p4-projects
mailing list