From: Christoph Hellwig <hch@infradead.org>
To: Eric Sandeen <sandeen@sgi.com>
Cc: linux-kernel@vger.kernel.org, torvalds@transmeta.com,
marcelo@conectiva.com.br
Subject: Re: [PATCH] (repost) kmem_cache_zalloc
Date: Thu, 25 Apr 2002 09:41:43 +0100 [thread overview]
Message-ID: <20020425094143.A17406@infradead.org> (raw)
In-Reply-To: <1019682472.15455.33.camel@stout.americas.sgi.com>
On Wed, Apr 24, 2002 at 04:07:52PM -0500, Eric Sandeen wrote:
> (reposting)
>
> There was a brief thread on this patch a while ago, please see
> http://www.uwsg.iu.edu/hypermail/linux/kernel/0203.3/0601.html
>
> In short, XFS is using a kmem_cache_zalloc() function which just
> does kmem_cache_alloc + memset.
Hi Eric,
I don't think kmem_cache_zalloc is a good idea. The idea behind the slab
cache is to allow object reuse by storing constructed objects in the
caches, and a memset directly after the alloc destroys the object state.
A kmen_zalloc/kzalloc might make more sense.
next prev parent reply other threads:[~2002-04-25 8:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-24 21:07 Eric Sandeen
2002-04-25 7:26 ` arjan
2002-04-25 8:41 ` Christoph Hellwig [this message]
2002-04-25 20:33 ` Eric Sandeen
2002-04-27 20:11 ` Alan Cox
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=20020425094143.A17406@infradead.org \
--to=hch@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo@conectiva.com.br \
--cc=sandeen@sgi.com \
--cc=torvalds@transmeta.com \
/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
all inboxes | Powered by JetHome®