Lines Matching defs:task
41 * @task: rpc_task of the sillydelete
46 static void nfs_async_unlink_done(struct rpc_task *task, void *calldata)
51 trace_nfs_sillyrename_unlink(data, task->tk_status);
52 if (!NFS_PROTO(dir)->unlink_done(task, dir))
53 rpc_restart_call_prepare(task);
60 * We need to call nfs_put_unlinkdata as a 'tk_release' task since the
76 static void nfs_unlink_prepare(struct rpc_task *task, void *calldata)
80 NFS_PROTO(dir)->unlink_rpc_prepare(task, data);
103 struct rpc_task *task;
112 task = rpc_run_task(&task_setup_data);
113 if (!IS_ERR(task))
114 rpc_put_task_async(task);
253 * @task: rpc_task of the sillyrename
258 static void nfs_async_rename_done(struct rpc_task *task, void *calldata)
266 new_dir, data->new_dentry, task->tk_status);
267 if (!NFS_PROTO(old_dir)->rename_done(task, old_dir, new_dir)) {
268 rpc_restart_call_prepare(task);
273 data->complete(task, data);
310 static void nfs_rename_prepare(struct rpc_task *task, void *calldata)
313 NFS_PROTO(data->old_dir)->rename_rpc_prepare(task, data);
391 nfs_complete_sillyrename(struct rpc_task *task, struct nfs_renamedata *data)
395 if (task->tk_status != 0) {
438 struct rpc_task *task;
484 /* run the rename task, undo unlink if it fails */
485 task = nfs_async_rename(dir, dir, dentry, sdentry,
487 if (IS_ERR(task)) {
493 /* wait for the RPC task to complete, unless a SIGKILL intervenes */
494 error = rpc_wait_for_completion_task(task);
496 error = task->tk_status;
515 rpc_put_task(task);