|
@@ -369,10 +369,9 @@ unsigned int nfs_page_array_len(unsigned int base, size_t len)
|
|
|
* Helper for restarting RPC calls in the possible presence of NFSv4.1
|
|
|
* sessions.
|
|
|
*/
|
|
|
-static inline void nfs_restart_rpc(struct rpc_task *task, const struct nfs_client *clp)
|
|
|
+static inline int nfs_restart_rpc(struct rpc_task *task, const struct nfs_client *clp)
|
|
|
{
|
|
|
if (nfs4_has_session(clp))
|
|
|
- rpc_restart_call_prepare(task);
|
|
|
- else
|
|
|
- rpc_restart_call(task);
|
|
|
+ return rpc_restart_call_prepare(task);
|
|
|
+ return rpc_restart_call(task);
|
|
|
}
|