projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ed3764
)
fs: Move bh_cachep to the __read_mostly section
author
Shai Fultheim
<shai@scalemp.com>
Tue, 15 May 2012 09:29:52 +0000
(12:29 +0300)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 31 May 2012 01:04:52 +0000
(21:04 -0400)
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>
fs/buffer.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/buffer.c
b/fs/buffer.c
index ad5938ca357c270ace08388401176f22a6343571..838a9cf246bd0fa561ab66295f9bb3df77e0c6a2 100644
(file)
--- 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