diff options
author | Dan Magenheimer <dan.magenheimer@oracle.com> | 2011-09-21 12:21:20 -0400 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-01-23 16:08:09 -0500 |
commit | 072611ed1f291053a74b28b813d683a09495eba7 (patch) | |
tree | f87b881e4c64e1d0c1396373850514d969110dce /mm | |
parent | 417fc2caef268ed23169316f6c5e3a33775bfae5 (diff) |
mm: cleancache: Use __read_mostly as appropiate.
The values are rarely changed so might as well put them in the
appropiate section.
Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
Signed-off-by: Konrad Wilk <konrad.wilk@oracle.com>
Cc: Kamezawa Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Jan Beulich <JBeulich@novell.com>
Acked-by: Seth Jennings <sjenning@linux.vnet.ibm.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Hugh Dickins <hughd@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Nitin Gupta <ngupta@vflare.org>
Cc: Matthew Wilcox <matthew@wil.cx>
Cc: Chris Mason <chris.mason@oracle.com>
Cc: Rik Riel <riel@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/cleancache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/cleancache.c b/mm/cleancache.c index deb9f2c06fb7..5646c740f613 100644 --- a/mm/cleancache.c +++ b/mm/cleancache.c | |||
@@ -25,14 +25,14 @@ | |||
25 | * disabled), so is preferred to the slower alternative: a function | 25 | * disabled), so is preferred to the slower alternative: a function |
26 | * call that checks a non-global. | 26 | * call that checks a non-global. |
27 | */ | 27 | */ |
28 | int cleancache_enabled; | 28 | int cleancache_enabled __read_mostly; |
29 | EXPORT_SYMBOL(cleancache_enabled); | 29 | EXPORT_SYMBOL(cleancache_enabled); |
30 | 30 | ||
31 | /* | 31 | /* |
32 | * cleancache_ops is set by cleancache_ops_register to contain the pointers | 32 | * cleancache_ops is set by cleancache_ops_register to contain the pointers |
33 | * to the cleancache "backend" implementation functions. | 33 | * to the cleancache "backend" implementation functions. |
34 | */ | 34 | */ |
35 | static struct cleancache_ops cleancache_ops; | 35 | static struct cleancache_ops cleancache_ops __read_mostly; |
36 | 36 | ||
37 | /* | 37 | /* |
38 | * Counters available via /sys/kernel/debug/frontswap (if debugfs is | 38 | * Counters available via /sys/kernel/debug/frontswap (if debugfs is |