From: Nick Piggin <nickpiggin@yahoo.com.au>
To: Christoph Lameter <clameter@sgi.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
ak@suse.de, Mel Gorman <mel@csn.ul.ie>,
apw@shadowen.org,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>,
Rik van Riel <riel@redhat.com>,
linux-mm@kvack.org
Subject: Re: [patch 8/8] Pageflags: Eliminate PG_xxx aliases
Date: Fri, 7 Mar 2008 15:16:11 +1100 [thread overview]
Message-ID: <200803071516.12268.nickpiggin@yahoo.com.au> (raw)
In-Reply-To: <Pine.LNX.4.64.0803061951060.476@schroedinger.engr.sgi.com>
On Friday 07 March 2008 14:53, Christoph Lameter wrote:
> On Fri, 7 Mar 2008, Nick Piggin wrote:
> > > It avoids us having to deal with aliases in the future.
> >
> > It doesn't. You still have to deal with them.
>
> Sortof.
>
> You do not have to deal with it on the level of the PG_xxx enum constant.
But that's the easy part, and the part that I think is actually
useful because you get to explicitly see the aliases.
> Yes you will have to deal with the aliases at the level of the
> functions.
Which is the hard part.
> > > PG_xx at this
> > > point is not unique which can be confusing. See the PG_reclaim in
> > > mm/page_alloc.c. It also means PG_readahead. If I look for
> > > handling of PG_readahead then I wont find it.
> >
> > You can't just pretend not to deal with aliases at that point
> > in mm/page_alloc.c just becuase you only have one name for the
> > bit position.
>
> If you only have one name for the bit position the you can localize the
> aliases and uses of that bit. This means you can go from a bit that you
> see set while debugging to the PG_xxx flag and then look for uses. Which
> will turn up aliases.
I don't understand how this would be any different from the current
code except with the curent code, you only have to look for aliases
in one place (ie. the PG_ definitions).
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2008-03-07 4:16 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20080305223815.574326323@sgi.com>
[not found] ` <20080305223846.780991734@sgi.com>
2008-03-06 2:40 ` Nick Piggin
2008-03-06 22:51 ` Christoph Lameter
2008-03-07 0:48 ` Nick Piggin
2008-03-07 1:38 ` Christoph Lameter
2008-03-07 2:20 ` Nick Piggin
2008-03-07 3:53 ` Christoph Lameter
2008-03-07 4:16 ` Nick Piggin [this message]
[not found] ` <20080305223845.436523065@sgi.com>
2008-03-06 4:08 ` [patch 2/8] Kbuild: Create a way to create preprocessor constants from C expressions Andrew Morton
2008-03-06 20:20 ` Christoph Lameter
2008-03-06 21:00 ` Sam Ravnborg
2008-03-06 21:49 ` Christoph Lameter
2008-03-06 22:43 ` Christoph Lameter
2008-03-06 22:55 ` Sam Ravnborg
2008-03-06 23:02 ` Christoph Lameter
2008-03-06 20:51 ` Sam Ravnborg
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=200803071516.12268.nickpiggin@yahoo.com.au \
--to=nickpiggin@yahoo.com.au \
--cc=ak@suse.de \
--cc=akpm@linux-foundation.org \
--cc=apw@shadowen.org \
--cc=clameter@sgi.com \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=kosaki.motohiro@jp.fujitsu.com \
--cc=linux-mm@kvack.org \
--cc=mel@csn.ul.ie \
--cc=riel@redhat.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