]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] pktcdvd: Don't waste kernel memory
authorPeter Osterlund <petero2@telia.com>
Sun, 5 Feb 2006 07:27:47 +0000 (23:27 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 5 Feb 2006 19:06:52 +0000 (11:06 -0800)
commit51e486856933cfd7ec17ec923d8f45452b9b7f2c
tree22816d5b1979961ec60507e8b6783a02c7fdb283
parent91a639daa486e3e52dad7501ee086791882025a2
[PATCH] pktcdvd: Don't waste kernel memory

Allocate memory for read-gathering at open time, when it is known just how
much memory is needed.  This avoids wasting kernel memory when the real packet
size is smaller than the maximum packet size supported by the driver.  This is
always the case when using DVD discs.

Signed-off-by: Peter Osterlund <petero2@telia.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/block/Kconfig
drivers/block/pktcdvd.c
include/linux/pktcdvd.h