summaryrefslogtreecommitdiffstats
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
parent3ed37648e1cbf1bbebc200c6ea8fd8daf8325843 (diff)
downloadblackbird-op-linux-a0a9b0433767713342f9cc70f563483c38e26f30.tar.gz
blackbird-op-linux-a0a9b0433767713342f9cc70f563483c38e26f30.zip
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>
-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
OpenPOWER on IntegriCloud