mm: cleancache: Use __read_mostly as appropiate.
authorDan Magenheimer <[email protected]>
Wed, 21 Sep 2011 16:21:20 +0000 (12:21 -0400)
committerKonrad Rzeszutek Wilk <[email protected]>
Mon, 23 Jan 2012 21:08:09 +0000 (16:08 -0500)
The values are rarely changed so might as well put them in the
appropiate section.

Signed-off-by: Dan Magenheimer <[email protected]>
Signed-off-by: Konrad Wilk <[email protected]>
Cc: Kamezawa Hiroyuki <[email protected]>
Cc: Jan Beulich <[email protected]>
Acked-by: Seth Jennings <[email protected]>
Cc: Jeremy Fitzhardinge <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Nitin Gupta <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Chris Mason <[email protected]>
Cc: Rik Riel <[email protected]>
Cc: Andrew Morton <[email protected]>
mm/cleancache.c

index deb9f2c06fb7593050ad0d263c46579449da47bc..5646c740f613ed1ec8b34a094f76d7934eed1aac 100644 (file)
  * disabled), so is preferred to the slower alternative: a function
  * call that checks a non-global.
  */
-int cleancache_enabled;
+int cleancache_enabled __read_mostly;
 EXPORT_SYMBOL(cleancache_enabled);
 
 /*
  * cleancache_ops is set by cleancache_ops_register to contain the pointers
  * to the cleancache "backend" implementation functions.
  */
-static struct cleancache_ops cleancache_ops;
+static struct cleancache_ops cleancache_ops __read_mostly;
 
 /*
  * Counters available via /sys/kernel/debug/frontswap (if debugfs is