From: Andrew Morton <akpm@osdl.org>
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: linux-kernel@vger.kernel.org, jbarnes@sgi.com,
jes@trained-monkey.org, nickpiggin@yahoo.com.au,
tony.luck@intel.com, mm-commits@vger.kernel.org
Subject: Re: + pg_uncached-is-ia64-only.patch added to -mm tree
Date: Thu, 6 Apr 2006 21:52:42 -0700 [thread overview]
Message-ID: <20060406215242.245340de.akpm@osdl.org> (raw)
In-Reply-To: <20060407134827.91a47e69.kamezawa.hiroyu@jp.fujitsu.com>
KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> wrote:
>
> Hi, Andrew
>
> On Thu, 06 Apr 2006 21:20:26 -0700
> akpm@osdl.org wrote:
>
> >
> > The patch titled
> >
> > PG_uncached is ia64 only
> >
> > has been added to the -mm tree. Its filename is
> >
> > pg_uncached-is-ia64-only.patch
> >
> > See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
> > out what to do about this
> >
>
> in include/linux/mmzone.h
> ==
> #elif BITS_PER_LONG == 64
> /*
> * with 64 bit flags field, there's plenty of room.
> */
> #define FLAGS_RESERVED 32
>
> #else
OK.
>
> it looks this is used here.
>
> #if SECTIONS_WIDTH+NODES_WIDTH+ZONES_WIDTH > FLAGS_RESERVED
> #error SECTIONS_WIDTH+NODES_WIDTH+ZONES_WIDTH > FLAGS_RESERVED
> #endif
>
> I'm not sure but please compile check FLAGS_RESRVED with SPARSEMEM or
>
Yes, that test won't trigger.
>
> #if (BITS_PER_LONG > 32) /* 64-bit only flags. we can use full
> low 32bits */
> #define PG_uncached 31
> #endif
>
> Hm..Is this ugly ? :(
It's easier to change FLAGS_RESERVED ;)
diff -puN include/linux/page-flags.h~pg_uncached-is-ia64-only include/linux/page-flags.h
--- devel/include/linux/page-flags.h~pg_uncached-is-ia64-only 2006-04-06 21:50:51.000000000 -0700
+++ devel-akpm/include/linux/page-flags.h 2006-04-06 21:50:51.000000000 -0700
@@ -7,6 +7,8 @@
#include <linux/percpu.h>
#include <linux/cache.h>
+#include <linux/types.h>
+
#include <asm/pgtable.h>
/*
@@ -86,7 +88,10 @@
#define PG_mappedtodisk 16 /* Has blocks allocated on-disk */
#define PG_reclaim 17 /* To be reclaimed asap */
#define PG_nosave_free 18 /* Free, should not be written */
-#define PG_uncached 19 /* Page has been mapped as uncached */
+
+#if (BITS_PER_LONG > 32)
+#define PG_uncached 32 /* Page has been mapped as uncached */
+#endif
/*
* Global page accounting. One instance per CPU. Only unsigned longs are
diff -puN include/linux/mmzone.h~pg_uncached-is-ia64-only include/linux/mmzone.h
--- devel/include/linux/mmzone.h~pg_uncached-is-ia64-only 2006-04-06 21:50:56.000000000 -0700
+++ devel-akpm/include/linux/mmzone.h 2006-04-06 21:51:12.000000000 -0700
@@ -457,7 +457,7 @@ extern struct zone *next_zone(struct zon
/*
* with 64 bit flags field, there's plenty of room.
*/
-#define FLAGS_RESERVED 32
+#define FLAGS_RESERVED 24
#else
_
next prev parent reply other threads:[~2006-04-07 4:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200604070421.k374LXFs011197@shell0.pdx.osdl.net>
2006-04-07 4:48 ` KAMEZAWA Hiroyuki
2006-04-07 4:52 ` Andrew Morton [this message]
2006-04-07 4:59 ` David S. Miller
2006-04-07 5:40 ` KAMEZAWA Hiroyuki
2006-04-08 15:41 ` 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=20060406215242.245340de.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=jbarnes@sgi.com \
--cc=jes@trained-monkey.org \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mm-commits@vger.kernel.org \
--cc=nickpiggin@yahoo.com.au \
--cc=tony.luck@intel.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
Powered by JetHome