From: Matthew Dobson <colpatch@us.ibm.com>
To: linux-kernel@vger.kernel.org
Cc: penberg@cs.helsinki.fi, akpm@osdl.org
Subject: [patch 0/8] Create and Use common mempool allocators (Take 2)
Date: Mon, 30 Jan 2006 13:23:28 -0800 [thread overview]
Message-ID: <1138656208.20704.0.camel@localhost.localdomain> (raw)
--
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
next reply other threads:[~2006-01-30 21:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-30 21:23 Matthew Dobson [this message]
2006-01-31 7:38 ` Pekka J Enberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1138656208.20704.0.camel@localhost.localdomain \
--to=colpatch@us.ibm.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=penberg@cs.helsinki.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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