From: Trond Myklebust Subject: Re: [PATCH 24/27] NFS: Use local caching [try #2] Date: Thu, 24 Jan 2008 16:08:34 -0500 Message-ID: <1201208914.7054.33.camel@heimdal.trondhjem.org> References: <20080123172038.11107.86025.stgit@warthog.procyon.org.uk> <20080123172246.11107.62216.stgit@warthog.procyon.org.uk> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: nfsv4@linux-nfs.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, selinux@tycho.nsa.gov, linux-security-module@vger.kernel.org To: David Howells Return-path: In-Reply-To: <20080123172246.11107.62216.stgit@warthog.procyon.org.uk> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Wed, 2008-01-23 at 17:22 +0000, David Howells wrote: > The attached patch makes it possible for the NFS filesystem to make use of the > network filesystem local caching service (FS-Cache). > > To be able to use this, an updated mount program is required. This can be > obtained from: > > http://people.redhat.com/steved/fscache/util-linux/ > > To mount an NFS filesystem to use caching, add an "fsc" option to the mount: > > mount warthog:/ /a -o fsc Nope. The new text-based mount code should just work. There should be no need to also support cachefs via the legacy binary formant. > Signed-off-by: David Howells > --- > > fs/nfs/Makefile | 1 > fs/nfs/client.c | 5 + > fs/nfs/file.c | 37 ++++ > fs/nfs/fscache-def.c | 289 +++++++++++++++++++++++++++++++++ > fs/nfs/fscache.c | 391 +++++++++++++++++++++++++++++++++++++++++++++ > fs/nfs/fscache.h | 148 +++++++++++++++++ > fs/nfs/inode.c | 47 +++++ > fs/nfs/read.c | 28 +++ > fs/nfs/super.c | 3 > fs/nfs/sysctl.c | 1 > include/linux/nfs_fs.h | 9 + > include/linux/nfs_fs_sb.h | 18 ++ > 12 files changed, 968 insertions(+), 9 deletions(-) > create mode 100644 fs/nfs/fscache-def.c > create mode 100644 fs/nfs/fscache.c > create mode 100644 fs/nfs/fscache.h > This needs to be split up. Scheduling an fscache write, retrieving pages from fscache, managing fscache cache consistency, adding statistics are all examples of completely separate tasks that should not be bunched together in a single megapatch, particularly not since they touch core NFS code. Trond