diff options
author | Fred Isaman <iisaman@netapp.com> | 2012-04-20 14:47:42 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-04-27 14:10:37 -0400 |
commit | cd12ae326f5c040f61d64233514609adabe84ab8 (patch) | |
tree | 075fb17f4da0340b96a02a32bc54e6ba1a5e639e /fs | |
parent | c5996c4efb95bbb80a25acc890357c9eae998eeb (diff) |
NFS: remove unnecessary casts of void pointers in nfs4filelayout.c
Signed-off-by: Fred Isaman <iisaman@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfs/nfs4filelayout.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/nfs/nfs4filelayout.c b/fs/nfs/nfs4filelayout.c index adbadcb55a39..31afd812faec 100644 --- a/fs/nfs/nfs4filelayout.c +++ b/fs/nfs/nfs4filelayout.c | |||
@@ -191,7 +191,7 @@ filelayout_set_layoutcommit(struct nfs_write_data *wdata) | |||
191 | */ | 191 | */ |
192 | static void filelayout_read_prepare(struct rpc_task *task, void *data) | 192 | static void filelayout_read_prepare(struct rpc_task *task, void *data) |
193 | { | 193 | { |
194 | struct nfs_read_data *rdata = (struct nfs_read_data *)data; | 194 | struct nfs_read_data *rdata = data; |
195 | 195 | ||
196 | rdata->read_done_cb = filelayout_read_done_cb; | 196 | rdata->read_done_cb = filelayout_read_done_cb; |
197 | 197 | ||
@@ -205,7 +205,7 @@ static void filelayout_read_prepare(struct rpc_task *task, void *data) | |||
205 | 205 | ||
206 | static void filelayout_read_call_done(struct rpc_task *task, void *data) | 206 | static void filelayout_read_call_done(struct rpc_task *task, void *data) |
207 | { | 207 | { |
208 | struct nfs_read_data *rdata = (struct nfs_read_data *)data; | 208 | struct nfs_read_data *rdata = data; |
209 | 209 | ||
210 | dprintk("--> %s task->tk_status %d\n", __func__, task->tk_status); | 210 | dprintk("--> %s task->tk_status %d\n", __func__, task->tk_status); |
211 | 211 | ||
@@ -215,14 +215,14 @@ static void filelayout_read_call_done(struct rpc_task *task, void *data) | |||
215 | 215 | ||
216 | static void filelayout_read_count_stats(struct rpc_task *task, void *data) | 216 | static void filelayout_read_count_stats(struct rpc_task *task, void *data) |
217 | { | 217 | { |
218 | struct nfs_read_data *rdata = (struct nfs_read_data *)data; | 218 | struct nfs_read_data *rdata = data; |
219 | 219 | ||
220 | rpc_count_iostats(task, NFS_SERVER(rdata->inode)->client->cl_metrics); | 220 | rpc_count_iostats(task, NFS_SERVER(rdata->inode)->client->cl_metrics); |
221 | } | 221 | } |
222 | 222 | ||
223 | static void filelayout_read_release(void *data) | 223 | static void filelayout_read_release(void *data) |
224 | { | 224 | { |
225 | struct nfs_read_data *rdata = (struct nfs_read_data *)data; | 225 | struct nfs_read_data *rdata = data; |
226 | 226 | ||
227 | put_lseg(rdata->lseg); | 227 | put_lseg(rdata->lseg); |
228 | rdata->mds_ops->rpc_release(data); | 228 | rdata->mds_ops->rpc_release(data); |
@@ -282,7 +282,7 @@ static int filelayout_commit_done_cb(struct rpc_task *task, | |||
282 | 282 | ||
283 | static void filelayout_write_prepare(struct rpc_task *task, void *data) | 283 | static void filelayout_write_prepare(struct rpc_task *task, void *data) |
284 | { | 284 | { |
285 | struct nfs_write_data *wdata = (struct nfs_write_data *)data; | 285 | struct nfs_write_data *wdata = data; |
286 | 286 | ||
287 | if (nfs41_setup_sequence(wdata->ds_clp->cl_session, | 287 | if (nfs41_setup_sequence(wdata->ds_clp->cl_session, |
288 | &wdata->args.seq_args, &wdata->res.seq_res, | 288 | &wdata->args.seq_args, &wdata->res.seq_res, |
@@ -294,7 +294,7 @@ static void filelayout_write_prepare(struct rpc_task *task, void *data) | |||
294 | 294 | ||
295 | static void filelayout_write_call_done(struct rpc_task *task, void *data) | 295 | static void filelayout_write_call_done(struct rpc_task *task, void *data) |
296 | { | 296 | { |
297 | struct nfs_write_data *wdata = (struct nfs_write_data *)data; | 297 | struct nfs_write_data *wdata = data; |
298 | 298 | ||
299 | /* Note this may cause RPC to be resent */ | 299 | /* Note this may cause RPC to be resent */ |
300 | wdata->mds_ops->rpc_call_done(task, data); | 300 | wdata->mds_ops->rpc_call_done(task, data); |
@@ -302,14 +302,14 @@ static void filelayout_write_call_done(struct rpc_task *task, void *data) | |||
302 | 302 | ||
303 | static void filelayout_write_count_stats(struct rpc_task *task, void *data) | 303 | static void filelayout_write_count_stats(struct rpc_task *task, void *data) |
304 | { | 304 | { |
305 | struct nfs_write_data *wdata = (struct nfs_write_data *)data; | 305 | struct nfs_write_data *wdata = data; |
306 | 306 | ||
307 | rpc_count_iostats(task, NFS_SERVER(wdata->inode)->client->cl_metrics); | 307 | rpc_count_iostats(task, NFS_SERVER(wdata->inode)->client->cl_metrics); |
308 | } | 308 | } |
309 | 309 | ||
310 | static void filelayout_write_release(void *data) | 310 | static void filelayout_write_release(void *data) |
311 | { | 311 | { |
312 | struct nfs_write_data *wdata = (struct nfs_write_data *)data; | 312 | struct nfs_write_data *wdata = data; |
313 | 313 | ||
314 | put_lseg(wdata->lseg); | 314 | put_lseg(wdata->lseg); |
315 | wdata->mds_ops->rpc_release(data); | 315 | wdata->mds_ops->rpc_release(data); |