Commit a0a9b043 authored by Shai Fultheim's avatar Shai Fultheim Committed by Al Viro

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: default avatarShai Fultheim <shai@scalemp.com>
Signed-off-by: default avatarVlad Zolotarov <vlad@scalemp.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 3ed37648
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment