9p: Add a Direct IO support for non-cached operations.
authorjvrao <jvrao@linux.vnet.ibm.com>
Tue, 24 Aug 2010 15:43:28 +0000 (15:43 +0000)
committerEric Van Hensbergen <ericvh@gmail.com>
Thu, 28 Oct 2010 14:08:45 +0000 (09:08 -0500)
commit3e24ad2ff9d477f949acd0982cf12e58812210cb
treef234e6df673e7d2a6e394949dbe7f98ed6032a8c
parent4f7ebe807242898ee08ed732d56982874442c304
9p: Add a Direct IO support for non-cached operations.

The presence of v9fs_direct_IO() in the address space ops vector
allowes open() O_DIRECT flags which would have failed otherwise.

In the non-cached mode, we shunt off direct read and write requests before
the VFS gets them, so this method should never be called.

Direct IO is not 'yet' supported in the cached mode. Hence when
this routine is called through generic_file_aio_read(), the read/write fails
with an error.

Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
fs/9p/vfs_addr.c