summaryrefslogtreecommitdiffstats
path: root/fs/buffer.c
diff options
context:
space:
mode:
authorShai Fultheim <shai@scalemp.com>2012-05-15 12:29:52 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2012-05-30 21:04:52 -0400
commita0a9b0433767713342f9cc70f563483c38e26f30 (patch)
tree62b6aeef401a2cf0dcc16683bdea3efe24d2c007 /fs/buffer.c
parent3ed37648e1cbf1bbebc200c6ea8fd8daf8325843 (diff)
downloadlinux-a0a9b0433767713342f9cc70f563483c38e26f30.tar.bz2
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 <shai@scalemp.com> Signed-off-by: Vlad Zolotarov <vlad@scalemp.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/buffer.c')
-rw-r--r--fs/buffer.c2
1 files changed, 1 insertions, 1 deletions
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