From: Shai Fultheim Date: Tue, 15 May 2012 09:29:52 +0000 (+0300) Subject: fs: Move bh_cachep to the __read_mostly section X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=a0a9b0433767713342f9cc70f563483c38e26f30;p=deliverable%2Flinux.git fs: Move bh_cachep to the __read_mostly section bh_cachep is only written to once on initialization, so move it to the __read_mostly section. Signed-off-by: Shai Fultheim Signed-off-by: Vlad Zolotarov Signed-off-by: Al Viro --- diff --git a/fs/buffer.c b/fs/buffer.c index ad5938ca357c..838a9cf246bd 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -3152,7 +3152,7 @@ SYSCALL_DEFINE2(bdflush, int, func, long, data) /* * Buffer-head allocation */ -static struct kmem_cache *bh_cachep; +static struct kmem_cache *bh_cachep __read_mostly; /* * Once the number of bh's in the machine exceeds this level, we start