* [merged] kernel-relayc-relay_alloc_page_array-use-vzalloc.patch removed from -mm tree
@ 2010-11-08 20:01 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2010-11-08 20:01 UTC (permalink / raw)
To: jj, karim, lethal, mathieu.desnoyers, zanussi, mm-commits
The patch titled
kernel/relay.c: relay_alloc_page_array() use vzalloc()
has been removed from the -mm tree. Its filename was
kernel-relayc-relay_alloc_page_array-use-vzalloc.patch
This patch was dropped because it was merged into mainline or a subsystem tree
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject: kernel/relay.c: relay_alloc_page_array() use vzalloc()
From: Jesper Juhl <jj@chaosbits.net>
We can optimize kernel/relay.c::relay_alloc_page_array() slightly by using
vzalloc. The patch makes these changes:
- use vzalloc instead of vmalloc+memset.
- remove redundant local variable 'array'.
- declare local 'pa_size' as const.
Cuts down nicely on both source and object-code size.
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Cc: Tom Zanussi <zanussi@us.ibm.com>
Cc: Karim Yaghmour <karim@opersys.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Cc: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
kernel/relay.c | 15 ++++-----------
1 file changed, 4 insertions(+), 11 deletions(-)
diff -puN kernel/relay.c~kernel-relayc-relay_alloc_page_array-use-vzalloc kernel/relay.c
--- a/kernel/relay.c~kernel-relayc-relay_alloc_page_array-use-vzalloc
+++ a/kernel/relay.c
@@ -70,17 +70,10 @@ static const struct vm_operations_struct
*/
static struct page **relay_alloc_page_array(unsigned int n_pages)
{
- struct page **array;
- size_t pa_size = n_pages * sizeof(struct page *);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-11-08 20:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-08 20:01 [merged] kernel-relayc-relay_alloc_page_array-use-vzalloc.patch removed from -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.