Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a0a9b043 authored by Shai Fultheim's avatar Shai Fultheim Committed by Al Viro
Browse files

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: default avatarShai Fultheim <shai@scalemp.com>
Signed-off-by: default avatarVlad Zolotarov <vlad@scalemp.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 3ed37648
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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