diff options
author | J. Bruce Fields <bfields@redhat.com> | 2012-03-21 16:42:14 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-03-26 11:48:54 -0400 |
commit | 1df00640c9111c881633d9b219f18e66c52599ec (patch) | |
tree | e36d3924d84f47ec93f6650ff1fd5b8ea7d10d24 /fs/nfs/internal.h | |
parent | ab4684d1560f8d77f6ce82bd3f1f82937070d397 (diff) | |
parent | 5a7c9eec9fde1da0e3adf0a4ddb64ff2a324a492 (diff) |
Merge nfs containerization work from Trond's tree
The nfs containerization work is a prerequisite for Jeff Layton's reboot
recovery rework.
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r-- | fs/nfs/internal.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index 8102db9b926c..2476dc69365f 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h | |||
@@ -123,6 +123,7 @@ struct nfs_parsed_mount_data { | |||
123 | } nfs_server; | 123 | } nfs_server; |
124 | 124 | ||
125 | struct security_mnt_opts lsm_opts; | 125 | struct security_mnt_opts lsm_opts; |
126 | struct net *net; | ||
126 | }; | 127 | }; |
127 | 128 | ||
128 | /* mount_clnt.c */ | 129 | /* mount_clnt.c */ |
@@ -137,20 +138,22 @@ struct nfs_mount_request { | |||
137 | int noresvport; | 138 | int noresvport; |
138 | unsigned int *auth_flav_len; | 139 | unsigned int *auth_flav_len; |
139 | rpc_authflavor_t *auth_flavs; | 140 | rpc_authflavor_t *auth_flavs; |
141 | struct net *net; | ||
140 | }; | 142 | }; |
141 | 143 | ||
142 | extern int nfs_mount(struct nfs_mount_request *info); | 144 | extern int nfs_mount(struct nfs_mount_request *info); |
143 | extern void nfs_umount(const struct nfs_mount_request *info); | 145 | extern void nfs_umount(const struct nfs_mount_request *info); |
144 | 146 | ||
145 | /* client.c */ | 147 | /* client.c */ |
146 | extern struct rpc_program nfs_program; | 148 | extern const struct rpc_program nfs_program; |
149 | extern void nfs_clients_init(struct net *net); | ||
147 | 150 | ||
148 | extern void nfs_cleanup_cb_ident_idr(void); | 151 | extern void nfs_cleanup_cb_ident_idr(struct net *); |
149 | extern void nfs_put_client(struct nfs_client *); | 152 | extern void nfs_put_client(struct nfs_client *); |
150 | extern struct nfs_client *nfs4_find_client_no_ident(const struct sockaddr *); | 153 | extern struct nfs_client *nfs4_find_client_ident(struct net *, int); |
151 | extern struct nfs_client *nfs4_find_client_ident(int); | ||
152 | extern struct nfs_client * | 154 | extern struct nfs_client * |
153 | nfs4_find_client_sessionid(const struct sockaddr *, struct nfs4_sessionid *); | 155 | nfs4_find_client_sessionid(struct net *, const struct sockaddr *, |
156 | struct nfs4_sessionid *); | ||
154 | extern struct nfs_server *nfs_create_server( | 157 | extern struct nfs_server *nfs_create_server( |
155 | const struct nfs_parsed_mount_data *, | 158 | const struct nfs_parsed_mount_data *, |
156 | struct nfs_fh *); | 159 | struct nfs_fh *); |
@@ -329,6 +332,8 @@ void nfs_retry_commit(struct list_head *page_list, | |||
329 | void nfs_commit_clear_lock(struct nfs_inode *nfsi); | 332 | void nfs_commit_clear_lock(struct nfs_inode *nfsi); |
330 | void nfs_commitdata_release(void *data); | 333 | void nfs_commitdata_release(void *data); |
331 | void nfs_commit_release_pages(struct nfs_write_data *data); | 334 | void nfs_commit_release_pages(struct nfs_write_data *data); |
335 | void nfs_request_add_commit_list(struct nfs_page *req, struct list_head *head); | ||
336 | void nfs_request_remove_commit_list(struct nfs_page *req); | ||
332 | 337 | ||
333 | #ifdef CONFIG_MIGRATION | 338 | #ifdef CONFIG_MIGRATION |
334 | extern int nfs_migrate_page(struct address_space *, | 339 | extern int nfs_migrate_page(struct address_space *, |