NFS: Get rid of nfs_restart_rpc()
[linux-2.6.git] / fs / nfs / unlink.c
index b2fbbde..4f9319a 100644 (file)
@@ -87,7 +87,7 @@ static void nfs_async_unlink_done(struct rpc_task *task, void *calldata)
        struct inode *dir = data->dir;
 
        if (!NFS_PROTO(dir)->unlink_done(task, dir))
-               nfs_restart_rpc(task, NFS_SERVER(dir)->nfs_client);
+               rpc_restart_call_prepare(task);
 }
 
 /**
@@ -369,7 +369,7 @@ static void nfs_async_rename_done(struct rpc_task *task, void *calldata)
        struct dentry *new_dentry = data->new_dentry;
 
        if (!NFS_PROTO(old_dir)->rename_done(task, old_dir, new_dir)) {
-               nfs_restart_rpc(task, NFS_SERVER(old_dir)->nfs_client);
+               rpc_restart_call_prepare(task);
                return;
        }