diff options
Diffstat (limited to 'fs/nfs/unlink.c')
-rw-r--r-- | fs/nfs/unlink.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/nfs/unlink.c b/fs/nfs/unlink.c index 8e5428e0b86f..6660d9a53345 100644 --- a/fs/nfs/unlink.c +++ b/fs/nfs/unlink.c | |||
@@ -127,6 +127,11 @@ static const struct rpc_call_ops nfs_unlink_ops = { | |||
127 | 127 | ||
128 | static int nfs_do_call_unlink(struct dentry *parent, struct inode *dir, struct nfs_unlinkdata *data) | 128 | static int nfs_do_call_unlink(struct dentry *parent, struct inode *dir, struct nfs_unlinkdata *data) |
129 | { | 129 | { |
130 | struct rpc_task_setup task_setup_data = { | ||
131 | .callback_ops = &nfs_unlink_ops, | ||
132 | .callback_data = data, | ||
133 | .flags = RPC_TASK_ASYNC, | ||
134 | }; | ||
130 | struct rpc_task *task; | 135 | struct rpc_task *task; |
131 | struct dentry *alias; | 136 | struct dentry *alias; |
132 | 137 | ||
@@ -160,7 +165,9 @@ static int nfs_do_call_unlink(struct dentry *parent, struct inode *dir, struct n | |||
160 | data->args.fh = NFS_FH(dir); | 165 | data->args.fh = NFS_FH(dir); |
161 | nfs_fattr_init(&data->res.dir_attr); | 166 | nfs_fattr_init(&data->res.dir_attr); |
162 | 167 | ||
163 | task = rpc_run_task(NFS_CLIENT(dir), RPC_TASK_ASYNC, &nfs_unlink_ops, data); | 168 | task_setup_data.rpc_client = NFS_CLIENT(dir); |
169 | |||
170 | task = rpc_run_task(&task_setup_data); | ||
164 | if (!IS_ERR(task)) | 171 | if (!IS_ERR(task)) |
165 | rpc_put_task(task); | 172 | rpc_put_task(task); |
166 | return 1; | 173 | return 1; |