From: Latchesar Ionkov Date: Tue, 11 Oct 2005 15:29:03 +0000 (-0700) Subject: [PATCH] v9fs: remove additional buffer allocation from v9fs_file_read and v9fs_file_write X-Git-Tag: v2.6.14-rc5~84 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19cba8abd6ca09527c194864ae651db65cbacfe1;p=pandora-kernel.git [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 Cc: Eric Van Hensbergen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed