From: Andrew Morton <akpm@osdl.org>
To: Andy Whitcroft <apw@shadowen.org>
Cc: linux-kernel@vger.kernel.org, apw@shadowen.org
Subject: Re: [PATCH] fix GFP zone modifier interators
Date: Thu, 24 Jun 2004 15:23:33 -0700 [thread overview]
Message-ID: <20040624152333.79b36a90.akpm@osdl.org> (raw)
In-Reply-To: <200406242140.i5OLeZV4028038@voidhawk.shadowen.org>
Andy Whitcroft <apw@shadowen.org> wrote:
>
> For each node there are a defined list of MAX_NR_ZONES zones.
> These are selected as a result of the __GFP_DMA and __GFP_HIGHMEM
> zone modifier flags being passed to the memory allocator as part of
> the GFP mask. Each node has a set of zone lists, node_zonelists,
> which defines the list and order of zones to scan for each flag
> combination. When initialising these lists we iterate over
> modifier combinations 0 .. MAX_NR_ZONES. However, this is only
> correct when there are at most ZONES_SHIFT flags. If another flag
> is introduced zonelists for it would not be initialised.
I don't get it. If you were going to add a new zone, identified by
__GFP_WHATEVER then you'd need to increase MAX_NR_ZONES
anyway, wouldn't you?
I'm sure you're right, but I haven't worked on this stuff in months and
it's obscure. Care to explain a little more?
> This patch introduces GFP_ZONEMODS (based on GFP_ZONEMASK) as a
> bound for the number of modifier combinations.
The "ZONEMODS" identifier doesn't really grab me. ZONETYPES, or something?
Either way, please add a big fat comment over it, explaining to the poor reader
what its semantic meaning is.
next prev parent reply other threads:[~2004-06-24 22:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-24 21:40 [PATCH] fix GFP zone modifier interators Andy Whitcroft
2004-06-24 22:23 ` Andrew Morton [this message]
2004-06-24 23:58 ` Andy Whitcroft
2004-06-25 16:32 ` Andy Whitcroft
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=20040624152333.79b36a90.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=apw@shadowen.org \
--cc=linux-kernel@vger.kernel.org \
/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