From: "Pekka Enberg" <penberg@cs.helsinki.fi>
To: "Jack Steiner" <steiner@sgi.com>
Cc: akpm@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] - Allocate larger cache_cache if order 0 fails
Date: Tue, 7 Mar 2006 21:36:04 +0200 [thread overview]
Message-ID: <84144f020603071136m21782038n8951c801627ae867@mail.gmail.com> (raw)
In-Reply-To: <20060307154805.GA3474@sgi.com>
Hi Jack,
On 3/7/06, Jack Steiner <steiner@sgi.com> wrote:
> - cache_estimate(0, cache_cache.buffer_size, cache_line_size(), 0,
> - &left_over, &cache_cache.num);
> + for (order = 0; order < MAX_ORDER; order++) {
> + cache_estimate(order, cache_cache.buffer_size, cache_line_size(), 0,
> + &left_over, &cache_cache.num);
> + if (cache_cache.num)
> + break;
> + }
Any reason why you can't use calculate_slab_order() here?
Pekka
next prev parent reply other threads:[~2006-03-07 19:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-07 15:48 Jack Steiner
2006-03-07 19:36 ` Pekka Enberg [this message]
2006-03-07 20:58 ` Jack Steiner
2006-03-08 7:10 ` 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=84144f020603071136m21782038n8951c801627ae867@mail.gmail.com \
--to=penberg@cs.helsinki.fi \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=steiner@sgi.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®