提交 a0a9b043 编写于 作者: S Shai Fultheim 提交者: 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: NShai Fultheim <shai@scalemp.com>
Signed-off-by: NVlad Zolotarov <vlad@scalemp.com>
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册