diff options
author | Shai Fultheim <shai@scalemp.com> | 2012-05-15 05:29:52 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-05-30 21:04:52 -0400 |
commit | a0a9b0433767713342f9cc70f563483c38e26f30 (patch) | |
tree | 62b6aeef401a2cf0dcc16683bdea3efe24d2c007 /fs/buffer.c | |
parent | 3ed37648e1cbf1bbebc200c6ea8fd8daf8325843 (diff) |
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>
Diffstat (limited to 'fs/buffer.c')
-rw-r--r-- | fs/buffer.c | 2 |
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) | |||
3152 | /* | 3152 | /* |
3153 | * Buffer-head allocation | 3153 | * Buffer-head allocation |
3154 | */ | 3154 | */ |
3155 | static struct kmem_cache *bh_cachep; | 3155 | static struct kmem_cache *bh_cachep __read_mostly; |
3156 | 3156 | ||
3157 | /* | 3157 | /* |
3158 | * Once the number of bh's in the machine exceeds this level, we start | 3158 | * Once the number of bh's in the machine exceeds this level, we start |