Revision 19cba8abd6ca09527c194864ae651db65cbacfe1 authored by Latchesar Ionkov on 11 October 2005, 15:29:03 UTC, committed by Linus Torvalds on 11 October 2005, 16:46:54 UTC
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>
1 parent ad6ce87
History
File Mode Size
Kconfig -rw-r--r-- 8.3 KB
Makefile -rw-r--r-- 556 bytes
acorn.c -rw-r--r-- 12.0 KB
acorn.h -rw-r--r-- 623 bytes
amiga.c -rw-r--r-- 3.3 KB
amiga.h -rw-r--r-- 116 bytes
atari.c -rw-r--r-- 3.8 KB
atari.h -rw-r--r-- 1.1 KB
check.c -rw-r--r-- 10.6 KB
check.h -rw-r--r-- 571 bytes
devfs.c -rw-r--r-- 2.8 KB
devfs.h -rw-r--r-- 328 bytes
efi.c -rw-r--r-- 19.6 KB
efi.h -rw-r--r-- 4.3 KB
ibm.c -rw-r--r-- 4.6 KB
ibm.h -rw-r--r-- 70 bytes
ldm.c -rw-r--r-- 41.0 KB
ldm.h -rw-r--r-- 5.7 KB
mac.c -rw-r--r-- 3.1 KB
mac.h -rw-r--r-- 1.3 KB
msdos.c -rw-r--r-- 12.6 KB
msdos.h -rw-r--r-- 151 bytes
osf.c -rw-r--r-- 1.7 KB
osf.h -rw-r--r-- 150 bytes
sgi.c -rw-r--r-- 2.2 KB
sgi.h -rw-r--r-- 155 bytes
sun.c -rw-r--r-- 2.5 KB
sun.h -rw-r--r-- 152 bytes
ultrix.c -rw-r--r-- 1.1 KB
ultrix.h -rw-r--r-- 117 bytes

back to top