diff options
Diffstat (limited to 'fs/nfs/internal.h')
| -rw-r--r-- | fs/nfs/internal.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index ab12913dd473..3f4d95751d52 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h | |||
| @@ -299,6 +299,8 @@ extern void nfs_read_prepare(struct rpc_task *task, void *calldata); | |||
| 299 | extern int nfs_generic_pagein(struct nfs_pageio_descriptor *desc, | 299 | extern int nfs_generic_pagein(struct nfs_pageio_descriptor *desc, |
| 300 | struct list_head *head); | 300 | struct list_head *head); |
| 301 | 301 | ||
| 302 | extern void nfs_pageio_init_read_mds(struct nfs_pageio_descriptor *pgio, | ||
| 303 | struct inode *inode); | ||
| 302 | extern void nfs_pageio_reset_read_mds(struct nfs_pageio_descriptor *pgio); | 304 | extern void nfs_pageio_reset_read_mds(struct nfs_pageio_descriptor *pgio); |
| 303 | extern void nfs_readdata_release(struct nfs_read_data *rdata); | 305 | extern void nfs_readdata_release(struct nfs_read_data *rdata); |
| 304 | 306 | ||
| @@ -457,13 +459,3 @@ unsigned int nfs_page_array_len(unsigned int base, size_t len) | |||
| 457 | PAGE_SIZE - 1) >> PAGE_SHIFT; | 459 | PAGE_SIZE - 1) >> PAGE_SHIFT; |
| 458 | } | 460 | } |
| 459 | 461 | ||
| 460 | /* | ||
| 461 | * Helper for restarting RPC calls in the possible presence of NFSv4.1 | ||
| 462 | * sessions. | ||
| 463 | */ | ||
| 464 | static inline int nfs_restart_rpc(struct rpc_task *task, const struct nfs_client *clp) | ||
| 465 | { | ||
| 466 | if (nfs4_has_session(clp)) | ||
| 467 | return rpc_restart_call_prepare(task); | ||
| 468 | return rpc_restart_call(task); | ||
| 469 | } | ||
