summaryrefslogtreecommitdiff
path: root/fs/nfs/internal.h
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2011-10-19 19:17:29 (GMT)
committerTrond Myklebust <Trond.Myklebust@netapp.com>2011-10-19 20:58:30 (GMT)
commitd00c5d43866720963a265fa3129f3203cac35b8e (patch)
tree0121c93156007c7764a818cc70b6864614e40536 /fs/nfs/internal.h
parentb8ef70639b609c5d12c618f1d9ffae6ac13aebe3 (diff)
downloadlinux-d00c5d43866720963a265fa3129f3203cac35b8e.tar.xz
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.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h
index ab12913..c1a1bd8 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)
PAGE_SIZE - 1) >> PAGE_SHIFT;
}
-/*
- * Helper for restarting RPC calls in the possible presence of NFSv4.1
- * sessions.
- */
-static inline int nfs_restart_rpc(struct rpc_task *task, const struct nfs_client *clp)
-{
- if (nfs4_has_session(clp))
- return rpc_restart_call_prepare(task);
- return rpc_restart_call(task);
-}