linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fs: Move bh_cachep to the __read_mostly section
@ 2012-05-15  9:29 Vlad Zolotarov
  0 siblings, 0 replies; 4+ messages in thread
From: Vlad Zolotarov @ 2012-05-15  9:29 UTC (permalink / raw)
  To: linux-kernel, viro; +Cc: linux-fsdevel

From: Shai Fultheim <shai@scalemp.com>

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>
---
 fs/buffer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/buffer.c b/fs/buffer.c
index 36d6665..a1d82fb 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -3151,7 +3151,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
-- 
1.7.7.6


^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [PATCH] fs: Move bh_cachep to the __read_mostly section
@ 2012-04-24 11:22 Vlad Zolotarov
  2012-05-03 11:26 ` Vlad Zolotarov
  0 siblings, 1 reply; 4+ messages in thread
From: Vlad Zolotarov @ 2012-04-24 11:22 UTC (permalink / raw)
  To: linux-kernel
  Cc: alan, Shai Fultheim (Shai@ScaleMP.com),
	H. Peter Anvin, Ingo Molnar, Thomas Gleixner

From: Shai Fultheim <shai@scalemp.com>

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>
---
 fs/buffer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/buffer.c b/fs/buffer.c
index 36d6665..a1d82fb 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -3151,7 +3151,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
-- 
1.7.7.6


^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [PATCH] fs: Move bh_cachep to the __read_mostly section
@ 2012-04-17 10:11 Vlad Zolotarov
  0 siblings, 0 replies; 4+ messages in thread
From: Vlad Zolotarov @ 2012-04-17 10:11 UTC (permalink / raw)
  To: linux-kernel, tglx, mingo, hpa; +Cc: Shai Fultheim (Shai@ScaleMP.com), andrea

From: Shai Fultheim <shai@scalemp.com>

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>
---
 fs/buffer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/buffer.c b/fs/buffer.c
index 36d6665..a1d82fb 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -3151,7 +3151,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
-- 
1.7.7.6


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-05-15  9:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-15  9:29 [PATCH] fs: Move bh_cachep to the __read_mostly section Vlad Zolotarov
  -- strict thread matches above, loose matches on Subject: below --
2012-04-24 11:22 Vlad Zolotarov
2012-05-03 11:26 ` Vlad Zolotarov
2012-04-17 10:11 Vlad Zolotarov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).