diff options
Diffstat (limited to 'fs/nfs/internal.h')
| -rw-r--r-- | fs/nfs/internal.h | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index f415cbf9f6c3..9056622d2230 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h | |||
| @@ -195,7 +195,16 @@ extern struct rpc_clnt *nfs4_find_or_create_ds_client(struct nfs_client *, | |||
| 195 | #ifdef CONFIG_PROC_FS | 195 | #ifdef CONFIG_PROC_FS |
| 196 | extern int __init nfs_fs_proc_init(void); | 196 | extern int __init nfs_fs_proc_init(void); |
| 197 | extern void nfs_fs_proc_exit(void); | 197 | extern void nfs_fs_proc_exit(void); |
| 198 | extern int nfs_fs_proc_net_init(struct net *net); | ||
| 199 | extern void nfs_fs_proc_net_exit(struct net *net); | ||
| 198 | #else | 200 | #else |
| 201 | static inline int nfs_fs_proc_net_init(struct net *net) | ||
| 202 | { | ||
| 203 | return 0; | ||
| 204 | } | ||
| 205 | static inline void nfs_fs_proc_net_exit(struct net *net) | ||
| 206 | { | ||
| 207 | } | ||
| 199 | static inline int nfs_fs_proc_init(void) | 208 | static inline int nfs_fs_proc_init(void) |
| 200 | { | 209 | { |
| 201 | return 0; | 210 | return 0; |
| @@ -238,11 +247,11 @@ void nfs_set_pgio_error(struct nfs_pgio_header *hdr, int error, loff_t pos); | |||
| 238 | int nfs_iocounter_wait(struct nfs_io_counter *c); | 247 | int nfs_iocounter_wait(struct nfs_io_counter *c); |
| 239 | 248 | ||
| 240 | extern const struct nfs_pageio_ops nfs_pgio_rw_ops; | 249 | extern const struct nfs_pageio_ops nfs_pgio_rw_ops; |
| 241 | struct nfs_rw_header *nfs_rw_header_alloc(const struct nfs_rw_ops *); | 250 | struct nfs_pgio_header *nfs_pgio_header_alloc(const struct nfs_rw_ops *); |
| 242 | void nfs_rw_header_free(struct nfs_pgio_header *); | 251 | void nfs_pgio_header_free(struct nfs_pgio_header *); |
| 243 | void nfs_pgio_data_release(struct nfs_pgio_data *); | 252 | void nfs_pgio_data_destroy(struct nfs_pgio_header *); |
| 244 | int nfs_generic_pgio(struct nfs_pageio_descriptor *, struct nfs_pgio_header *); | 253 | int nfs_generic_pgio(struct nfs_pageio_descriptor *, struct nfs_pgio_header *); |
| 245 | int nfs_initiate_pgio(struct rpc_clnt *, struct nfs_pgio_data *, | 254 | int nfs_initiate_pgio(struct rpc_clnt *, struct nfs_pgio_header *, |
| 246 | const struct rpc_call_ops *, int, int); | 255 | const struct rpc_call_ops *, int, int); |
| 247 | void nfs_free_request(struct nfs_page *req); | 256 | void nfs_free_request(struct nfs_page *req); |
| 248 | 257 | ||
| @@ -348,7 +357,7 @@ extern int nfs_drop_inode(struct inode *); | |||
| 348 | extern void nfs_clear_inode(struct inode *); | 357 | extern void nfs_clear_inode(struct inode *); |
| 349 | extern void nfs_evict_inode(struct inode *); | 358 | extern void nfs_evict_inode(struct inode *); |
| 350 | void nfs_zap_acl_cache(struct inode *inode); | 359 | void nfs_zap_acl_cache(struct inode *inode); |
| 351 | extern int nfs_wait_bit_killable(void *word); | 360 | extern int nfs_wait_bit_killable(struct wait_bit_key *key); |
| 352 | 361 | ||
| 353 | /* super.c */ | 362 | /* super.c */ |
| 354 | extern const struct super_operations nfs_sops; | 363 | extern const struct super_operations nfs_sops; |
| @@ -442,6 +451,7 @@ int nfs_scan_commit(struct inode *inode, struct list_head *dst, | |||
| 442 | void nfs_mark_request_commit(struct nfs_page *req, | 451 | void nfs_mark_request_commit(struct nfs_page *req, |
| 443 | struct pnfs_layout_segment *lseg, | 452 | struct pnfs_layout_segment *lseg, |
| 444 | struct nfs_commit_info *cinfo); | 453 | struct nfs_commit_info *cinfo); |
| 454 | int nfs_write_need_commit(struct nfs_pgio_header *); | ||
| 445 | int nfs_generic_commit_list(struct inode *inode, struct list_head *head, | 455 | int nfs_generic_commit_list(struct inode *inode, struct list_head *head, |
| 446 | int how, struct nfs_commit_info *cinfo); | 456 | int how, struct nfs_commit_info *cinfo); |
| 447 | void nfs_retry_commit(struct list_head *page_list, | 457 | void nfs_retry_commit(struct list_head *page_list, |
| @@ -482,7 +492,7 @@ static inline void nfs_inode_dio_wait(struct inode *inode) | |||
| 482 | extern ssize_t nfs_dreq_bytes_left(struct nfs_direct_req *dreq); | 492 | extern ssize_t nfs_dreq_bytes_left(struct nfs_direct_req *dreq); |
| 483 | 493 | ||
| 484 | /* nfs4proc.c */ | 494 | /* nfs4proc.c */ |
| 485 | extern void __nfs4_read_done_cb(struct nfs_pgio_data *); | 495 | extern void __nfs4_read_done_cb(struct nfs_pgio_header *); |
| 486 | extern struct nfs_client *nfs4_init_client(struct nfs_client *clp, | 496 | extern struct nfs_client *nfs4_init_client(struct nfs_client *clp, |
| 487 | const struct rpc_timeout *timeparms, | 497 | const struct rpc_timeout *timeparms, |
| 488 | const char *ip_addr); | 498 | const char *ip_addr); |
