mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch 0/8] Create and Use common mempool allocators (Take 2)
@ 2006-01-30 21:23 Matthew Dobson
  2006-01-31  7:38 ` Pekka J Enberg
  0 siblings, 1 reply; 2+ messages in thread
From: Matthew Dobson @ 2006-01-30 21:23 UTC (permalink / raw)
  To: linux-kernel; +Cc: penberg, akpm

--
In the course of working on some patches to implement subsystem-wide critical
pools through the existing mempool API, I created the following patches which
create 3 new common mempool allocators (mempool_alloc_pages, mempool_kmalloc &
mempool_kzalloc) and freers.  The following 6 patches add these new common
allocators and convert existing mempool users to use these common allocators,
where possible.  Optionally, the last 2 patches in this series add and use a
wrapper for the common case of creating a slab-based mempool.

After the application of these patches there are only 4 places where
'non-common' allocators are used (drivers/md/raid1.c & raid10.c, mm/highmem.c
and drivers/scsi/scsi_transport_iscsi.c), and all of these are non-trivial
allocators.  The sum of these patches is a reduction of 90 lines of kernel
code and the removal of many nearly identical mempool allocators.

New since Take 1:
* Added 4 mempool_create() wrappers to avoid both gratuitous casting
   and gratuitous cast warnings.
* Update to 2.6.16-rc1-mm4

Thanks!

-Matt


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-01-31  7:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-30 21:23 [patch 0/8] Create and Use common mempool allocators (Take 2) Matthew Dobson
2006-01-31  7:38 ` Pekka J Enberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome