X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fdcookies.c;h=c1208f53bd74596c74423f085886c859bf51cf3e;hb=2e85622042cb5fd56a606e884651ffde52f21028;hp=ef758cfa5565b8f980d773df684b3b28ac60fc44;hpb=353ab6e97b8f209dbecc9f650f1f84e3da2a7bb1;p=linux-2.6 diff --git a/fs/dcookies.c b/fs/dcookies.c index ef758cfa55..c1208f53bd 100644 --- a/fs/dcookies.c +++ b/fs/dcookies.c @@ -12,7 +12,6 @@ * to the pair and can be looked up from userspace. */ -#include #include #include #include @@ -38,9 +37,9 @@ struct dcookie_struct { static LIST_HEAD(dcookie_users); static DEFINE_MUTEX(dcookie_mutex); -static kmem_cache_t * dcookie_cache; -static struct list_head * dcookie_hashtable; -static size_t hash_size; +static struct kmem_cache *dcookie_cache __read_mostly; +static struct list_head *dcookie_hashtable __read_mostly; +static size_t hash_size __read_mostly; static inline int is_live(void) { @@ -206,7 +205,7 @@ static int dcookie_init(void) dcookie_cache = kmem_cache_create("dcookie_cache", sizeof(struct dcookie_struct), - 0, 0, NULL, NULL); + 0, 0, NULL); if (!dcookie_cache) goto out;