From: Venkateswararao Jujjuri (JV) Date: Fri, 28 Jan 2011 22:11:13 +0000 (-0800) Subject: [net/9p] Preparation and helper functions for zero copy X-Git-Tag: v2.6.39-rc1~489^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=022cae36551ba805bf82084047945b2901d75f36;p=pandora-kernel.git [net/9p] Preparation and helper functions for zero copy This patch prepares p9_fcall structure for zero copy. Added fields send the payload buffer information to the transport layer. In addition it adds a 'private' field for the transport layer to store mapped/pinned page information so that it can be freed/unpinned during req_done. This patch also creates trans_common.[ch] to house helper functions. It adds the following helper functions. p9_release_req_pages - Release pages after the transaction. p9_nr_pages - Return number of pages needed to accomodate the payload. payload_gup - Translates user buffer into kernel pages. Signed-off-by: Venkateswararao Jujjuri Signed-off-by: Eric Van Hensbergen --- Reading git-diff-tree failed