Print this page
re #13613 rb4516 Tunables needs volatile keyword
@@ -19,18 +19,20 @@
* CDDL HEADER END
*/
/*
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright 2013 Nexenta Systems, Inc. All rights reserved.
*/
#include <sys/types.h>
#include <sys/strlog.h>
#include <sys/policy.h>
#include <sys/strsun.h>
#include <sys/squeue_impl.h>
#include <sys/squeue.h>
+#include <sys/vmsystm.h>
#include <inet/common.h>
#include <inet/ip.h>
#include <inet/tcp.h>
#include <inet/tcp_impl.h>
@@ -502,11 +504,10 @@
tcp_reclaim_timer(void *arg)
{
tcp_stack_t *tcps = (tcp_stack_t *)arg;
int64_t tot_conn = 0;
int i;
- extern pgcnt_t lotsfree, needfree;
for (i = 0; i < tcps->tcps_sc_cnt; i++)
tot_conn += tcps->tcps_sc[i]->tcp_sc_conn_cnt;
/*
@@ -544,11 +545,10 @@
tcp_conn_reclaim(void *arg)
{
netstack_handle_t nh;
netstack_t *ns;
tcp_stack_t *tcps;
- extern pgcnt_t lotsfree, needfree;
if (!tcp_do_reclaim)
return;
/*