linux-arch.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrea Righi <righi.andrea@gmail.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	kosaki.motohiro@jp.fujitsu.com, torvalds@linux-foundation.org,
	linux-mm@kvack.org, linux-arch@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Thomas Gleixner <tglx@linutronix.de>
Subject: Re: [PATCH 1/1] mm: unify pmd_free() and __pmd_free_tlb() implementation
Date: Thu, 31 Jul 2008 18:59:57 +0200	[thread overview]
Message-ID: <4891EF8D.6010502@gmail.com> (raw)
In-Reply-To: <20080731161750.GA26393@elte.hu>

Ingo Molnar wrote:
> * Andrea Righi <righi.andrea@gmail.com> wrote:
> 
>> Jeremy Fitzhardinge wrote:
>>> Andrew Morton wrote:
>>>> I can second that.  See
>>>> http://userweb.kernel.org/~akpm/mmotm/broken-out/include-asm-generic-pgtable-nopmdh-macros-are-noxious-reason-435.patch
>>>>
>>>> Ingo cruelly ignored it.  Probably he's used to ignoring the comit
>>>> storm which I send in his direction - I'll need to resend it sometime.
>>>>
>>>> I'd consider that patch to be partial - we should demacroize the
>>>> surrounding similar functions too.  But that will require a bit more
>>>> testing.
>>> Its immediate neighbours should be easy enough (pmd_alloc_one, 
>>> __pmd_free_tlb), but any of the ones involving pmd_t risk #include hell 
>>> (though the earlier references to pud_t in inline functions suggest it 
>>> will work).  And pmd_addr_end is just ugly.
>>>
>>>     J
>>>
>> ok, let's start with the easiest: pmd_free() and __pmd_free_tlb().
>>
>> Following another attempt to unify the implementations using inline 
>> functions. It seems to build fine on x86 (pae / non-pae) and on 
>> x86_64. This is an RFC patch right now, not for inclusion (just asking 
>> if it could be a reasonable approach or not). And in any case this 
>> would need more testing.
>>
>> Signed-off-by: Andrea Righi <righi.andrea@gmail.com>
>> ---
>>  arch/sparc/include/asm/pgalloc_64.h |    1 +
>>  include/asm-alpha/pgalloc.h         |    1 +
>>  include/asm-arm/pgalloc.h           |    1 -
>>  include/asm-frv/pgalloc.h           |    2 --
>>  include/asm-generic/pgtable-nopmd.h |   19 +++++++++++++++++--
>>  include/asm-ia64/pgalloc.h          |    1 +
>>  include/asm-m32r/pgalloc.h          |    2 --
>>  include/asm-m68k/motorola_pgalloc.h |    3 ++-
>>  include/asm-m68k/sun3_pgalloc.h     |    7 -------
>>  include/asm-mips/pgalloc.h          |   12 +-----------
>>  include/asm-parisc/pgalloc.h        |    2 +-
>>  include/asm-powerpc/pgalloc-32.h    |    2 --
>>  include/asm-powerpc/pgalloc-64.h    |    1 +
>>  include/asm-s390/pgalloc.h          |    1 -
>>  include/asm-sh/pgalloc.h            |    8 --------
>>  include/asm-um/pgalloc.h            |    1 +
>>  include/asm-x86/pgalloc.h           |    2 ++
>>  17 files changed, 28 insertions(+), 38 deletions(-)
> 
> the x86 bits look good to me in principle but touches a ton of 
> architectures and deals with VM issues - the perfect candidate for -mm?
> 
> 	Ingo

Yes, sounds reasonable. I'll rebase to -mm and post a new patch.

Thanks,
-Andrea

  reply	other threads:[~2008-07-31 16:59 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-28 15:51 [PATCH 1/1] mm: unify pmd_free() implementation Andrea Righi
2008-07-28 15:53 ` Linus Torvalds
2008-07-28 16:17   ` Andrea Righi
2008-07-28 16:17     ` Andrea Righi
2008-07-28 16:27     ` KOSAKI Motohiro
2008-07-28 17:19       ` Andrea Righi
2008-07-28 20:30         ` Andrew Morton
2008-07-28 20:46           ` Jeremy Fitzhardinge
2008-07-28 22:53             ` [PATCH 1/1] mm: unify pmd_free() and __pmd_free_tlb() implementation Andrea Righi
2008-07-31 16:17               ` Ingo Molnar
2008-07-31 16:59                 ` Andrea Righi [this message]
2008-07-28 16:17   ` [PATCH 1/1] mm: unify pmd_free() implementation James Bottomley
2008-07-28 16:45     ` Linus Torvalds
2008-07-28 16:58       ` James Bottomley
2008-07-28 17:10         ` Linus Torvalds
2008-07-28 20:08           ` [PATCH 1/1] mm: unify pmd_free() implementation -> instrumentation Mathieu Desnoyers
2008-07-28 20:08             ` Mathieu Desnoyers

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=4891EF8D.6010502@gmail.com \
    --to=righi.andrea@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=jeremy@goop.org \
    --cc=kosaki.motohiro@jp.fujitsu.com \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mingo@elte.hu \
    --cc=tglx@linutronix.de \
    --cc=torvalds@linux-foundation.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;
as well as URLs for NNTP newsgroup(s).