diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-10-19 15:17:29 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-10-19 16:58:30 -0400 |
commit | d00c5d43866720963a265fa3129f3203cac35b8e (patch) | |
tree | 0121c93156007c7764a818cc70b6864614e40536 /fs/nfs/internal.h | |
parent | b8ef70639b609c5d12c618f1d9ffae6ac13aebe3 (diff) |
NFS: Get rid of nfs_restart_rpc()
It can trivially be replaced with rpc_restart_call_prepare.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r-- | fs/nfs/internal.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index ab12913dd473..c1a1bd8ddf1c 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h | |||
@@ -457,13 +457,3 @@ unsigned int nfs_page_array_len(unsigned int base, size_t len) | |||
457 | PAGE_SIZE - 1) >> PAGE_SHIFT; | 457 | PAGE_SIZE - 1) >> PAGE_SHIFT; |
458 | } | 458 | } |
459 | 459 | ||
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 | } | ||