Skip to content

Commit

Permalink
fs: Move bh_cachep to the __read_mostly section
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shai Fultheim authored and Al Viro committed May 31, 2012
1 parent 3ed3764 commit a0a9b04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a0a9b04

Please sign in to comment.