mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-30 11:04:25 +00:00
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>
This commit is contained in:
parent
3ed37648e1
commit
a0a9b04337
1 changed files with 1 additions and 1 deletions
|
@ -3152,7 +3152,7 @@ SYSCALL_DEFINE2(bdflush, int, func, long, data)
|
||||||
/*
|
/*
|
||||||
* Buffer-head allocation
|
* 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
|
* Once the number of bh's in the machine exceeds this level, we start
|
||||||
|
|
Loading…
Add table
Reference in a new issue