diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/9p/client.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/9p/client.c b/net/9p/client.c index ceab943dfc49..5b705559a6b2 100644 --- a/net/9p/client.c +++ b/net/9p/client.c | |||
@@ -92,9 +92,6 @@ static int get_protocol_version(const substring_t *name) | |||
92 | return version; | 92 | return version; |
93 | } | 93 | } |
94 | 94 | ||
95 | static struct p9_req_t * | ||
96 | p9_client_rpc(struct p9_client *c, int8_t type, const char *fmt, ...); | ||
97 | |||
98 | /** | 95 | /** |
99 | * parse_options - parse mount options into client structure | 96 | * parse_options - parse mount options into client structure |
100 | * @opts: options string passed from mount | 97 | * @opts: options string passed from mount |
@@ -518,12 +515,15 @@ out_err: | |||
518 | return err; | 515 | return err; |
519 | } | 516 | } |
520 | 517 | ||
518 | static struct p9_req_t * | ||
519 | p9_client_rpc(struct p9_client *c, int8_t type, const char *fmt, ...); | ||
520 | |||
521 | /** | 521 | /** |
522 | * p9_client_flush - flush (cancel) a request | 522 | * p9_client_flush - flush (cancel) a request |
523 | * @c: client state | 523 | * @c: client state |
524 | * @oldreq: request to cancel | 524 | * @oldreq: request to cancel |
525 | * | 525 | * |
526 | * This sents a flush for a particular requests and links | 526 | * This sents a flush for a particular request and links |
527 | * the flush request to the original request. The current | 527 | * the flush request to the original request. The current |
528 | * code only supports a single flush request although the protocol | 528 | * code only supports a single flush request although the protocol |
529 | * allows for multiple flush requests to be sent for a single request. | 529 | * allows for multiple flush requests to be sent for a single request. |
@@ -1298,7 +1298,7 @@ p9_client_read(struct p9_fid *fid, char *data, char __user *udata, u64 offset, | |||
1298 | if (count < rsize) | 1298 | if (count < rsize) |
1299 | rsize = count; | 1299 | rsize = count; |
1300 | 1300 | ||
1301 | /* Don't bother zerocopy form small IO (< 1024) */ | 1301 | /* Don't bother zerocopy for small IO (< 1024) */ |
1302 | if (((clnt->trans_mod->pref & P9_TRANS_PREF_PAYLOAD_MASK) == | 1302 | if (((clnt->trans_mod->pref & P9_TRANS_PREF_PAYLOAD_MASK) == |
1303 | P9_TRANS_PREF_PAYLOAD_SEP) && (rsize > 1024)) { | 1303 | P9_TRANS_PREF_PAYLOAD_SEP) && (rsize > 1024)) { |
1304 | req = p9_client_rpc(clnt, P9_TREAD, "dqE", fid->fid, offset, | 1304 | req = p9_client_rpc(clnt, P9_TREAD, "dqE", fid->fid, offset, |