]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] v9fs: remove additional buffer allocation from v9fs_file_read and v9fs_file_write
authorLatchesar Ionkov <lucho@ionkov.net>
Tue, 11 Oct 2005 15:29:03 +0000 (08:29 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 11 Oct 2005 16:46:54 +0000 (09:46 -0700)
commit19cba8abd6ca09527c194864ae651db65cbacfe1
tree3d59a1e147b2701d0957bef392e2fda441d5143f
parentad6ce87e5bd4440a6ce9aa9f8cda795b9e902eff
[PATCH] v9fs: remove additional buffer allocation from v9fs_file_read and v9fs_file_write

v9fs_file_read and v9fs_file_write use kmalloc to allocate buffers as big
as the data buffer received as parameter.  kmalloc cannot be used to
allocate buffers bigger than 128K, so reading/writing data in chunks bigger
than 128k fails.

This patch reorganizes v9fs_file_read and v9fs_file_write to allocate only
buffers as big as the maximum data that can be sent in one 9P message.

Signed-off-by: Latchesar Ionkov <lucho@ionkov.net>
Cc: Eric Van Hensbergen <ericvh@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/9p/vfs_file.c