X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=net%2Fipv4%2Finetpeer.c;h=f84ba9c96551e015882d9895ac197814c3b769f1;hb=ba89966c1984513f4f2cc0a6c182266be44ddd03;hp=ab18a853d7ce3ca5249606af7f5a1660de6e5182;hpb=005940ead619c2867e0465c8e0fffb9e5989b57e;p=linux-2.6 diff --git a/net/ipv4/inetpeer.c b/net/ipv4/inetpeer.c index ab18a853d7..f84ba9c965 100644 --- a/net/ipv4/inetpeer.c +++ b/net/ipv4/inetpeer.c @@ -20,6 +20,7 @@ #include #include #include +#include #include /* @@ -72,7 +73,7 @@ /* Exported for inet_getid inline function. */ DEFINE_SPINLOCK(inet_peer_idlock); -static kmem_cache_t *peer_cachep; +static kmem_cache_t *peer_cachep __read_mostly; #define node_height(x) x->avl_height static struct inet_peer peer_fake_node = { @@ -459,5 +460,3 @@ static void peer_check_expire(unsigned long dummy) peer_total / inet_peer_threshold * HZ; add_timer(&peer_periodic_timer); } - -EXPORT_SYMBOL(inet_peer_idlock);