From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Piggin Subject: Re: [PATCH 36/42] VFS: export drop_pagecache_sb Date: Wed, 12 Dec 2007 16:38:34 +1100 Message-ID: <200712121638.35167.nickpiggin@yahoo.com.au> References: <11972545353262-git-send-email-ezk@cs.sunysb.edu> <11972545593966-git-send-email-ezk@cs.sunysb.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: hch@infradead.org, viro@ftp.linux.org.uk, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org To: Erez Zadok Return-path: Received: from smtp109.mail.mud.yahoo.com ([209.191.85.219]:40738 "HELO smtp109.mail.mud.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752449AbXLLFip (ORCPT ); Wed, 12 Dec 2007 00:38:45 -0500 In-Reply-To: <11972545593966-git-send-email-ezk@cs.sunysb.edu> Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Monday 10 December 2007 13:42, Erez Zadok wrote: > Needed to maintain cache coherency after branch management. > Hmm, I'd much prefer to be able to sleep in invalidate_mapping_pages before this function gets exported. As it is, it can cause massive latencies on preemption and the inode_lock so it is pretty much debug-only IMO. I'd rather it didn't escape into the wild as is. Either that or rework your cache coherency somehow. > Signed-off-by: Erez Zadok > --- > fs/drop_caches.c | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/fs/drop_caches.c b/fs/drop_caches.c > index 59375ef..90410ac 100644 > --- a/fs/drop_caches.c > +++ b/fs/drop_caches.c > @@ -3,6 +3,7 @@ > */ > > #include > +#include > #include > #include > #include > @@ -12,7 +13,7 @@ > /* A global variable is a bit ugly, but it keeps the code simple */ > int sysctl_drop_caches; > > -static void drop_pagecache_sb(struct super_block *sb) > +void drop_pagecache_sb(struct super_block *sb) > { > struct inode *inode; > > @@ -24,6 +25,7 @@ static void drop_pagecache_sb(struct super_block *sb) > } > spin_unlock(&inode_lock); > } > +EXPORT_SYMBOL(drop_pagecache_sb); > > void drop_pagecache(void) > {