diff options
Diffstat (limited to 'net/9p/client.c')
-rw-r--r-- | net/9p/client.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/net/9p/client.c b/net/9p/client.c index b0d08c2375d0..433b30713ef6 100644 --- a/net/9p/client.c +++ b/net/9p/client.c | |||
@@ -51,7 +51,7 @@ p9_client_rpc(struct p9_client *c, struct p9_fcall *tc, | |||
51 | struct p9_fcall **rc) | 51 | struct p9_fcall **rc) |
52 | { | 52 | { |
53 | if (c->trans->rpc) | 53 | if (c->trans->rpc) |
54 | return c->trans->rpc(c->trans, tc, rc); | 54 | return c->trans->rpc(c->trans, tc, rc, c->msize, c->dotu); |
55 | else | 55 | else |
56 | return p9_conn_rpc(c->conn, tc, rc); | 56 | return p9_conn_rpc(c->conn, tc, rc); |
57 | } | 57 | } |
@@ -99,7 +99,7 @@ struct p9_client *p9_client_create(struct p9_trans *trans, int msize, | |||
99 | goto error; | 99 | goto error; |
100 | } | 100 | } |
101 | 101 | ||
102 | err = p9_client_rpc(clnt->conn, tc, &rc); | 102 | err = p9_client_rpc(clnt, tc, &rc); |
103 | if (err) | 103 | if (err) |
104 | goto error; | 104 | goto error; |
105 | 105 | ||
@@ -191,7 +191,7 @@ struct p9_fid *p9_client_attach(struct p9_client *clnt, struct p9_fid *afid, | |||
191 | goto error; | 191 | goto error; |
192 | } | 192 | } |
193 | 193 | ||
194 | err = p9_client_rpc(clnt->conn, tc, &rc); | 194 | err = p9_client_rpc(clnt, tc, &rc); |
195 | if (err) | 195 | if (err) |
196 | goto error; | 196 | goto error; |
197 | 197 | ||
@@ -236,7 +236,7 @@ struct p9_fid *p9_client_auth(struct p9_client *clnt, char *uname, | |||
236 | goto error; | 236 | goto error; |
237 | } | 237 | } |
238 | 238 | ||
239 | err = p9_client_rpc(clnt->conn, tc, &rc); | 239 | err = p9_client_rpc(clnt, tc, &rc); |
240 | if (err) | 240 | if (err) |
241 | goto error; | 241 | goto error; |
242 | 242 | ||
@@ -287,7 +287,7 @@ struct p9_fid *p9_client_walk(struct p9_fid *oldfid, int nwname, char **wnames, | |||
287 | goto error; | 287 | goto error; |
288 | } | 288 | } |
289 | 289 | ||
290 | err = p9_client_rpc(clnt->conn, tc, &rc); | 290 | err = p9_client_rpc(clnt, tc, &rc); |
291 | if (err) { | 291 | if (err) { |
292 | if (rc && rc->id == P9_RWALK) | 292 | if (rc && rc->id == P9_RWALK) |
293 | goto clunk_fid; | 293 | goto clunk_fid; |
@@ -322,7 +322,7 @@ clunk_fid: | |||
322 | goto error; | 322 | goto error; |
323 | } | 323 | } |
324 | 324 | ||
325 | p9_client_rpc(clnt->conn, tc, &rc); | 325 | p9_client_rpc(clnt, tc, &rc); |
326 | 326 | ||
327 | error: | 327 | error: |
328 | kfree(tc); | 328 | kfree(tc); |
@@ -356,7 +356,7 @@ int p9_client_open(struct p9_fid *fid, int mode) | |||
356 | goto done; | 356 | goto done; |
357 | } | 357 | } |
358 | 358 | ||
359 | err = p9_client_rpc(clnt->conn, tc, &rc); | 359 | err = p9_client_rpc(clnt, tc, &rc); |
360 | if (err) | 360 | if (err) |
361 | goto done; | 361 | goto done; |
362 | 362 | ||
@@ -395,7 +395,7 @@ int p9_client_fcreate(struct p9_fid *fid, char *name, u32 perm, int mode, | |||
395 | goto done; | 395 | goto done; |
396 | } | 396 | } |
397 | 397 | ||
398 | err = p9_client_rpc(clnt->conn, tc, &rc); | 398 | err = p9_client_rpc(clnt, tc, &rc); |
399 | if (err) | 399 | if (err) |
400 | goto done; | 400 | goto done; |
401 | 401 | ||
@@ -428,7 +428,7 @@ int p9_client_clunk(struct p9_fid *fid) | |||
428 | goto done; | 428 | goto done; |
429 | } | 429 | } |
430 | 430 | ||
431 | err = p9_client_rpc(clnt->conn, tc, &rc); | 431 | err = p9_client_rpc(clnt, tc, &rc); |
432 | if (err) | 432 | if (err) |
433 | goto done; | 433 | goto done; |
434 | 434 | ||
@@ -460,7 +460,7 @@ int p9_client_remove(struct p9_fid *fid) | |||
460 | goto done; | 460 | goto done; |
461 | } | 461 | } |
462 | 462 | ||
463 | err = p9_client_rpc(clnt->conn, tc, &rc); | 463 | err = p9_client_rpc(clnt, tc, &rc); |
464 | if (err) | 464 | if (err) |
465 | goto done; | 465 | goto done; |
466 | 466 | ||
@@ -502,7 +502,7 @@ int p9_client_read(struct p9_fid *fid, char *data, u64 offset, u32 count) | |||
502 | goto error; | 502 | goto error; |
503 | } | 503 | } |
504 | 504 | ||
505 | err = p9_client_rpc(clnt->conn, tc, &rc); | 505 | err = p9_client_rpc(clnt, tc, &rc); |
506 | if (err) | 506 | if (err) |
507 | goto error; | 507 | goto error; |
508 | 508 | ||
@@ -559,7 +559,7 @@ int p9_client_write(struct p9_fid *fid, char *data, u64 offset, u32 count) | |||
559 | goto error; | 559 | goto error; |
560 | } | 560 | } |
561 | 561 | ||
562 | err = p9_client_rpc(clnt->conn, tc, &rc); | 562 | err = p9_client_rpc(clnt, tc, &rc); |
563 | if (err) | 563 | if (err) |
564 | goto error; | 564 | goto error; |
565 | 565 | ||
@@ -613,7 +613,7 @@ p9_client_uread(struct p9_fid *fid, char __user *data, u64 offset, u32 count) | |||
613 | goto error; | 613 | goto error; |
614 | } | 614 | } |
615 | 615 | ||
616 | err = p9_client_rpc(clnt->conn, tc, &rc); | 616 | err = p9_client_rpc(clnt, tc, &rc); |
617 | if (err) | 617 | if (err) |
618 | goto error; | 618 | goto error; |
619 | 619 | ||
@@ -677,7 +677,7 @@ p9_client_uwrite(struct p9_fid *fid, const char __user *data, u64 offset, | |||
677 | goto error; | 677 | goto error; |
678 | } | 678 | } |
679 | 679 | ||
680 | err = p9_client_rpc(clnt->conn, tc, &rc); | 680 | err = p9_client_rpc(clnt, tc, &rc); |
681 | if (err) | 681 | if (err) |
682 | goto error; | 682 | goto error; |
683 | 683 | ||
@@ -748,7 +748,7 @@ struct p9_stat *p9_client_stat(struct p9_fid *fid) | |||
748 | goto error; | 748 | goto error; |
749 | } | 749 | } |
750 | 750 | ||
751 | err = p9_client_rpc(clnt->conn, tc, &rc); | 751 | err = p9_client_rpc(clnt, tc, &rc); |
752 | if (err) | 752 | if (err) |
753 | goto error; | 753 | goto error; |
754 | 754 | ||
@@ -790,7 +790,7 @@ int p9_client_wstat(struct p9_fid *fid, struct p9_wstat *wst) | |||
790 | goto done; | 790 | goto done; |
791 | } | 791 | } |
792 | 792 | ||
793 | err = p9_client_rpc(clnt->conn, tc, &rc); | 793 | err = p9_client_rpc(clnt, tc, &rc); |
794 | 794 | ||
795 | done: | 795 | done: |
796 | kfree(tc); | 796 | kfree(tc); |
@@ -847,7 +847,7 @@ struct p9_stat *p9_client_dirread(struct p9_fid *fid, u64 offset) | |||
847 | goto error; | 847 | goto error; |
848 | } | 848 | } |
849 | 849 | ||
850 | err = p9_client_rpc(clnt->conn, tc, &rc); | 850 | err = p9_client_rpc(clnt, tc, &rc); |
851 | if (err) | 851 | if (err) |
852 | goto error; | 852 | goto error; |
853 | 853 | ||