9p: Make use of iounit for read/write
authorM. Mohan Kumar <mohan@in.ibm.com>
Fri, 4 Jun 2010 11:59:07 +0000 (11:59 +0000)
committerEric Van Hensbergen <ericvh@gmail.com>
Mon, 2 Aug 2010 19:25:06 +0000 (14:25 -0500)
commit97e8442b0971ea6be9a495b3d03402985cfe5d6a
tree2afd94c5c1afc34c65a28f45baa08a811479f1f0
parentcff6b8a9b81b404e8ce0257b26007c3afe625212
9p: Make use of iounit for read/write

Change the v9fs_file_readn function to limit the maximum transfer size
based on the iounit or msize.

Also remove the redundant check for limiting the transfer size in
v9fs_file_write. This check is done by p9_client_write.

Signed-off-by: M. Mohan Kumar <mohan@in.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
fs/9p/vfs_file.c