X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Feventpoll.c;h=1b4491cdd11581235564f6aaaf3a545f71df1f93;hb=f6c2d1fa6310a71b1c2e05fc6d9ff9b91489fa0e;hp=1c2b16fda13aa8caf87869f29d2db8eb29ac8438;hpb=88f07ffb63add018bfafd480ec6a294088277f06;p=linux-2.6 diff --git a/fs/eventpoll.c b/fs/eventpoll.c index 1c2b16fda1..1b4491cdd1 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -281,16 +281,16 @@ static struct mutex epmutex; static struct poll_safewake psw; /* Slab cache used to allocate "struct epitem" */ -static kmem_cache_t *epi_cache; +static kmem_cache_t *epi_cache __read_mostly; /* Slab cache used to allocate "struct eppoll_entry" */ -static kmem_cache_t *pwq_cache; +static kmem_cache_t *pwq_cache __read_mostly; /* Virtual fs used to allocate inodes for eventpoll files */ -static struct vfsmount *eventpoll_mnt; +static struct vfsmount *eventpoll_mnt __read_mostly; /* File callbacks that implement the eventpoll file behaviour */ -static struct file_operations eventpoll_fops = { +static const struct file_operations eventpoll_fops = { .release = ep_eventpoll_close, .poll = ep_eventpoll_poll };