From: Dan Magenheimer Date: Wed, 21 Sep 2011 16:21:20 +0000 (-0400) Subject: mm: cleancache: Use __read_mostly as appropiate. X-Git-Tag: upstream/snapshot3+hdmi~7910^2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=072611ed1f291053a74b28b813d683a09495eba7;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Signed-off-by: Konrad Wilk Cc: Kamezawa Hiroyuki Cc: Jan Beulich Acked-by: Seth Jennings Cc: Jeremy Fitzhardinge Cc: Hugh Dickins Cc: Johannes Weiner Cc: Nitin Gupta Cc: Matthew Wilcox Cc: Chris Mason Cc: Rik Riel Cc: Andrew Morton --- diff --git a/mm/cleancache.c b/mm/cleancache.c index deb9f2c..5646c74 100644 --- a/mm/cleancache.c +++ b/mm/cleancache.c @@ -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