From: Andy Whitcroft <apw@shadowen.org>
To: Dave Hansen <dave@linux.vnet.ibm.com>
Cc: linux-mm <linux-mm@kvack.org>,
Jeremy Fitzhardinge <jeremy@goop.org>,
Johannes Weiner <hannes@saeurebad.de>
Subject: Re: max_mapnr config option
Date: Thu, 10 Apr 2008 11:33:06 +0100 [thread overview]
Message-ID: <20080410103306.GA29831@shadowen.org> (raw)
In-Reply-To: <1207340609.26869.20.camel@nimitz.home.sr71.net>
On Fri, Apr 04, 2008 at 01:23:29PM -0700, Dave Hansen wrote:
> Hey Andy,
>
> Take a look at include/linux/mm.h:
>
> #ifndef CONFIG_DISCONTIGMEM /* Don't use mapnrs, do it properly */
> extern unsigned long max_mapnr;
> #endif
>
> Shouldn't that be #ifdef CONFIG_FLATMEM?
>
> I don't think it is causing any problems since all references to
> max_mapnr are under FLATMEM ifdefs, but for correctness...
Ok, I did a comprehensive review of all the references, both to max_mapnr
and to mem_map which are both inherently FLATMEM specific variables.
It seems that there are actually a fair number of references which are
under inappropriate defines. Generally this is the use of !DISCONTIGMEM
on architectures which only support FLATMEM and DISCONTIGMEM. There are
also a number of unused constructs which can just go.
The biggest offenders of this are the show_mem implementations, but
it seems that Johannes (copied) is sorting that mess out; clearly one
implemenation is needed. Johannes, I have some changes to that series
which came out of my implementation of the same which I will send your
way separatly.
Following this email is a set of patches which fix the problems I have
found. Obviously these are all over the architecture map, and so will
probabally need feeding back via those trees individually.
-apw
--
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 parent reply other threads:[~2008-04-10 10:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1207340609.26869.20.camel@nimitz.home.sr71.net>
2008-04-10 10:33 ` Andy Whitcroft [this message]
2008-04-10 10:40 ` [PATCH 1/8] alpha: mem_map/max_mapnr -- init is FLATMEM use correct defines Andy Whitcroft
2008-04-10 10:41 ` [PATCH 2/8] arm: " Andy Whitcroft
2008-04-10 10:41 ` [PATCH 3/8] m32r: mem_map/max_mapnr -- definition is specific to FLATMEM Andy Whitcroft
2008-04-10 10:41 ` [PATCH 4/8] mips: " Andy Whitcroft
2008-04-10 10:41 ` [PATCH 5/8] parisc: " Andy Whitcroft
2008-04-10 10:41 ` [PATCH 6/8] powerpc: " Andy Whitcroft
2008-04-10 10:41 ` [PATCH 7/8] sparc64: " Andy Whitcroft
2008-04-10 10:41 ` [PATCH 8/8] mem_map/max_mapnr are specific to the FLATMEM memory model Andy Whitcroft
2008-06-02 15:13 ` Jeremy Fitzhardinge
[not found] ` <20080407091756.GC17915@shadowen.org>
[not found] ` <87iqyuhth2.fsf@saeurebad.de>
[not found] ` <20080408105137.GD17915@shadowen.org>
2008-05-23 13:09 ` max_mapnr config option apw
2008-05-23 19:52 ` Johannes Weiner
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=20080410103306.GA29831@shadowen.org \
--to=apw@shadowen.org \
--cc=dave@linux.vnet.ibm.com \
--cc=hannes@saeurebad.de \
--cc=jeremy@goop.org \
--cc=linux-mm@kvack.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.