From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755654Ab2GCJIl (ORCPT ); Tue, 3 Jul 2012 05:08:41 -0400 Received: from orion.tchmachines.com ([208.76.84.200]:34473 "EHLO orion.tchmachines.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755485Ab2GCJIi (ORCPT ); Tue, 3 Jul 2012 05:08:38 -0400 From: Vlad Zolotarov To: viro@zeniv.linux.org.uk Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Shai@scalemp.com Subject: Re: [PATCH RESEND] fs: Move bh_cachep to the __read_mostly section Date: Tue, 03 Jul 2012 12:08:37 +0300 Message-ID: <7099287.sBUlOcEXo4@vlad> Organization: ScaleMP Ltd. User-Agent: KMail/4.8.3 (Linux/3.2.0-26-generic; KDE/4.8.3; i686; ; ) In-Reply-To: <2325453.OX7ktP55U1@vlad> References: <2325453.OX7ktP55U1@vlad> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orion.tchmachines.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - scalemp.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday 28 May 2012 14:58:42 Vlad Zolotarov wrote: > From: Shai Fultheim > > bh_cachep is only written to once on initialization, so move it to the > __read_mostly section. > > Signed-off-by: Shai Fultheim > Signed-off-by: Vlad Zolotarov > --- > fs/buffer.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/buffer.c b/fs/buffer.c > index ad5938c..838a9cf 100644 > --- 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 Al, my apologies, I missed that the patch has been applied on May 15-th. :) thanks, vlad