From: Venkateswararao Jujjuri (JV) Date: Thu, 3 Feb 2011 01:52:46 +0000 (-0800) Subject: [net/9p] Assign type of transaction to tc->pdu->id which is otherwise unsed. X-Git-Tag: upstream/snapshot3+hdmi~11236^2~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9bb6c10a4ed48aef49a7243a6f798694722cf380;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [net/9p] Assign type of transaction to tc->pdu->id which is otherwise unsed. This will be used by the transport layer to determine the out going request type. Transport layer uses this information to correctly place the mapped pages in the PDU. Patches following this will make use of this to achieve zero copy. Signed-off-by: Venkateswararao Jujjuri Signed-off-by: Eric Van Hensbergen --- diff --git a/net/9p/protocol.c b/net/9p/protocol.c index d888847..5936c50 100644 --- a/net/9p/protocol.c +++ b/net/9p/protocol.c @@ -579,6 +579,7 @@ EXPORT_SYMBOL(p9stat_read); int p9pdu_prepare(struct p9_fcall *pdu, int16_t tag, int8_t type) { + pdu->id = type; return p9pdu_writef(pdu, 0, "dbw", 0, type, tag); }