aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/internal.h
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2012-01-23 12:26:22 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-02-06 18:48:03 -0500
commit28cd1b3f262dba56b5e335ba668e342d530f6129 (patch)
tree7ae24e43fe054042800118edb266287125ba34f8 /fs/nfs/internal.h
parentc25d32b26361ce0814fef2281f164866c18c8692 (diff)
NFS: make cb_ident_idr per net ns
This patch makes ID's infrastructure network namespace aware. This was done mainly because of nfs_client_lock, which is desired to be per network namespace, but protects NFS clients ID's. NOTE: NFS client's net pointer have to be set prior to ID initialization, proper assignment was moved. Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r--fs/nfs/internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h
index a9ae8069fff9..958fff2927c0 100644
--- a/fs/nfs/internal.h
+++ b/fs/nfs/internal.h
@@ -148,9 +148,9 @@ extern void nfs_umount(const struct nfs_mount_request *info);
148extern const struct rpc_program nfs_program; 148extern const struct rpc_program nfs_program;
149extern void nfs_clients_init(struct net *net); 149extern void nfs_clients_init(struct net *net);
150 150
151extern void nfs_cleanup_cb_ident_idr(void); 151extern void nfs_cleanup_cb_ident_idr(struct net *);
152extern void nfs_put_client(struct nfs_client *); 152extern void nfs_put_client(struct nfs_client *);
153extern struct nfs_client *nfs4_find_client_ident(int); 153extern struct nfs_client *nfs4_find_client_ident(struct net *, int);
154extern struct nfs_client * 154extern struct nfs_client *
155nfs4_find_client_sessionid(const struct sockaddr *, struct nfs4_sessionid *); 155nfs4_find_client_sessionid(const struct sockaddr *, struct nfs4_sessionid *);
156extern struct nfs_server *nfs_create_server( 156extern struct nfs_server *nfs_create_server(