[pnfs] [Fwd: [PATCH 07/13] pnfs: add cl_lo_inodes to struct nfs_client]

Benny Halevy bhalevy at panasas.com
Wed Jan 23 05:47:22 EST 2008


Resending since previous message didn't get to the mailing list.

On Jan. 22, 2008, 21:33 +0200, Benny Halevy <bhalevy at panasas.com> wrote:

cl_lo_inodes is the list of inodes having layout associated with
the nfs_client.

Signed-off-by: Benny Halevy <bhalevy at panasas.com>
---
 fs/nfs/client.c           |    4 ++++
 include/linux/nfs_fs_sb.h |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index a18f1e6..89b92e2 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -142,6 +142,10 @@ static struct nfs_client *nfs_alloc_client(const char *hostname,
 	clp->cl_minorversion = NFS4_MAX_MINOR_VERSION;
 #endif
 
+#if defined(CONFIG_PNFS)
+	INIT_LIST_HEAD(&clp->cl_lo_inodes);
+#endif
+
 	return clp;
 
 error_3:
diff --git a/include/linux/nfs_fs_sb.h b/include/linux/nfs_fs_sb.h
index b8476ae..5199801 100644
--- a/include/linux/nfs_fs_sb.h
+++ b/include/linux/nfs_fs_sb.h
@@ -81,6 +81,7 @@ struct nfs_client {
 #endif
 #ifdef CONFIG_PNFS
 	struct nfs4_session *	cl_ds_session; /* pNFS data server session */
+	struct list_head	cl_lo_inodes;	/* Inodes having layouts */
 #endif /* CONFIG_PNFS */
 };
 
-- 
1.5.3.3


-- 
Benny Halevy
Software Architect
Tel/Fax: +972-3-647-8340
Mobile: +972-54-802-8340
US:      +1-412-203-3187
bhalevy at panasas.com
 
Panasas, Inc.
The Leader in Parallel Storage
www.panasas.com


More information about the pNFS mailing list