[net/9p] Preparation and helper functions for zero copy
authorVenkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Fri, 28 Jan 2011 22:11:13 +0000 (14:11 -0800)
committerEric Van Hensbergen <ericvh@gmail.com>
Tue, 15 Mar 2011 14:57:34 +0000 (09:57 -0500)
commit022cae36551ba805bf82084047945b2901d75f36
tree5d8a8ff0eb2102d0449f58ddfcb8907bd3625682
parent6752a1ebd13f69b9d5ff08914fe29ee2813cbeea
[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 <jvrao@linux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
include/net/9p/9p.h
net/9p/Makefile
net/9p/protocol.c
net/9p/trans_common.c [new file with mode: 0644]
net/9p/trans_common.h [new file with mode: 0644]