Thread (8 messages) flat view 8 messages, 6 authors, 2006-08-18

Re: [2.6.19 PATCH 3/7] ehea: queue management

From: Jörn Engel <hidden>
Date: 2006-08-18 14:33:38
Also in: lkml, netdev

On Fri, 18 August 2006 15:25:11 +0200, Thomas Klein wrote:
Arjan van de Ven wrote:
quoted
quoted
+	queue->queue_length = nr_of_pages * pagesize;
+	queue->queue_pages = vmalloc(nr_of_pages * sizeof(void *));

wow... is this really so large that it warrants a vmalloc()???
Agreed: Replaced with kmalloc()
kzalloc() and you can remove the memset() as well.

Jörn

-- 
Data dominates. If you've chosen the right data structures and organized
things well, the algorithms will almost always be self-evident. Data
structures, not algorithms, are central to programming.
-- Rob Pike
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help