Skip to content

Commit

Permalink
mm: cleancache: Use __read_mostly as appropiate.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Magenheimer authored and konradwilk committed Jan 23, 2012
1 parent 417fc2c commit 072611e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mm/cleancache.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
* 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
Expand Down

0 comments on commit 072611e

Please sign in to comment.