aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/internal.h
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2010-07-31 14:29:07 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2010-08-03 22:06:44 -0400
commitd05dd4e98f0dd30ee933e05ac9363614c47df83a (patch)
tree1b117bc9ffae9cac6de629a85220593b718f4728 /fs/nfs/internal.h
parentf1f88fc7e818c6678c6799a2edb8f1aeccc124aa (diff)
NFS: Fix the NFS users of rpc_restart_call()
Fix up those functions that depend on knowing whether or not rpc_restart_call is successful or not. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r--fs/nfs/internal.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h
index d8bd619e386c..699725fee34f 100644
--- a/fs/nfs/internal.h
+++ b/fs/nfs/internal.h
@@ -369,10 +369,9 @@ unsigned int nfs_page_array_len(unsigned int base, size_t len)
369 * Helper for restarting RPC calls in the possible presence of NFSv4.1 369 * Helper for restarting RPC calls in the possible presence of NFSv4.1
370 * sessions. 370 * sessions.
371 */ 371 */
372static inline void nfs_restart_rpc(struct rpc_task *task, const struct nfs_client *clp) 372static inline int nfs_restart_rpc(struct rpc_task *task, const struct nfs_client *clp)
373{ 373{
374 if (nfs4_has_session(clp)) 374 if (nfs4_has_session(clp))
375 rpc_restart_call_prepare(task); 375 return rpc_restart_call_prepare(task);
376 else 376 return rpc_restart_call(task);
377 rpc_restart_call(task);
378} 377}