nfsd41: introduce nfs4_client cl_sessions list
authorMarc Eshel <eshel@almaden.ibm.com>
Fri, 3 Apr 2009 05:27:46 +0000 (08:27 +0300)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Sat, 4 Apr 2009 00:41:13 +0000 (17:41 -0700)
[get rid of CONFIG_NFSD_V4_1]
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/nfsd/nfs4state.c
include/linux/nfsd/state.h

index 8c70f12159b6a39e81519c9e7e6a12725e4e46d2..b2611999600abd4a464ddac1e41389a2e3c62ce8 100644 (file)
@@ -528,6 +528,7 @@ static struct nfs4_client *create_client(struct xdr_netobj name, char *recdir)
        INIT_LIST_HEAD(&clp->cl_strhash);
        INIT_LIST_HEAD(&clp->cl_openowners);
        INIT_LIST_HEAD(&clp->cl_delegations);
+       INIT_LIST_HEAD(&clp->cl_sessions);
        INIT_LIST_HEAD(&clp->cl_lru);
        return clp;
 }
index baea7f1fdb4a8db6b0ab3f6b319c3282a85b00d9..7faefc7c9d9a2be605fa42c9473a16055a6dffaf 100644 (file)
@@ -163,6 +163,9 @@ struct nfs4_client {
        struct nfs4_callback    cl_callback;    /* callback info */
        atomic_t                cl_count;       /* ref count */
        u32                     cl_firststate;  /* recovery dir creation */
+
+       /* for nfs41 */
+       struct list_head        cl_sessions;
 };
 
 /* struct nfs4_client_reset