]> Pileus Git - ~andy/linux/blobdiff - fs/nfs/internal.h
NFSv4: Add helpers for basic copying of stateids
[~andy/linux] / fs / nfs / internal.h
index eda4cde40fb2c353a763a5a582ab5417fda77ca6..0c3648a947d15a062b110057c3e64d875a0efb0e 100644 (file)
@@ -145,13 +145,15 @@ extern int nfs_mount(struct nfs_mount_request *info);
 extern void nfs_umount(const struct nfs_mount_request *info);
 
 /* client.c */
-extern struct rpc_program nfs_program;
+extern const struct rpc_program nfs_program;
+extern void nfs_clients_init(struct net *net);
 
-extern void nfs_cleanup_cb_ident_idr(void);
+extern void nfs_cleanup_cb_ident_idr(struct net *);
 extern void nfs_put_client(struct nfs_client *);
-extern struct nfs_client *nfs4_find_client_ident(int);
+extern struct nfs_client *nfs4_find_client_ident(struct net *, int);
 extern struct nfs_client *
-nfs4_find_client_sessionid(const struct sockaddr *, struct nfs4_sessionid *);
+nfs4_find_client_sessionid(struct net *, const struct sockaddr *,
+                               struct nfs4_sessionid *);
 extern struct nfs_server *nfs_create_server(
                                        const struct nfs_parsed_mount_data *,
                                        struct nfs_fh *);
@@ -181,10 +183,6 @@ static inline void nfs_fs_proc_exit(void)
 {
 }
 #endif
-#ifdef CONFIG_NFS_V4
-extern spinlock_t nfs_client_lock;
-extern struct list_head nfs_client_list;
-#endif
 
 /* nfs4namespace.c */
 #ifdef CONFIG_NFS_V4