Re: [RFC][patch 0/2] mm: remove PageReserved

From: Nick Piggin (nickpiggin_at_yahoo.com.au)
Date: 08/11/05

  • Next message: David Teigland: "Re: GFS - updated patches"
    Date:	Thu, 11 Aug 2005 19:09:29 +1000
    To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    
    

    Benjamin Herrenschmidt wrote:
    > On Tue, 2005-08-09 at 20:41 +0100, Russell King wrote:
    >
    >>On Tue, Aug 09, 2005 at 07:38:52AM -0700, Martin J. Bligh wrote:
    >>
    >>>pfn_valid() doesn't tell you it's RAM or not - it tells you whether you
    >>>have a backing struct page for that address. Could be an IO mapped device,
    >>>a small memory hole, whatever.
    >>
    >>The only things which have a struct page is RAM. Nothing else does.
    >
    >
    > Well, not anymore :)
    >

    Well thanks everyone for the discussion and input. If I have missed
    answering a question, please just mail me privately to let me know.

    I guess that despite some architecture implementation differences,
    everyone will be happy to see PageReserved go from core code. So
    I will send Andrew the patches.

    After that, we have a few options to move forward with completely
    getting rid of the flag from the other funny places it has cropped
    up. A portable page_is_ram() sounds like the best way to go, as it
    would not use up a page flag.

    As far as ioremap goes - I would rather completely disallow it from
    remapping physical pages and enforce that where possible (eg. with
    page_is_ram()).

    However, these issues (page_is_ram, swsusp, ioremap) need not be
    tackled right now. I will bring them up on the lists some time after
    the core mm/ is working nicely without PageReserved.

    Thanks,
    Nick

    -- 
    SUSE Labs, Novell Inc.
    Send instant messages to your online friends http://au.messenger.yahoo.com 
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: David Teigland: "Re: GFS - updated patches"

    Relevant Pages

    • Re: [RFC][patch 0/2] mm: remove PageReserved
      ... > that the meaning which swsusp needs is equally usable for a little sanity ... > check in ioremap, okay, but I'm sceptical. ... Send instant messages to your online friends http://au.messenger.yahoo.com ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [patch 0/6] remove PageReserved
      ... Most of the arch code is just reserved memory reporting, ... Hugh has some code which handles this case but he suggested that we ... Send instant messages to your online friends http://au.messenger.yahoo.com ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Oops on APM wakeup on 2.4.22/23-pre, works with 2.6.0-test
      ... use 2.6.0 due to other problems such as unstable PCMCIA ... right now (have to solder null-modem cable first etc), ... the followups to me, I don't read the lists ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: dev->release = (void (*)(struct device *))kfree;
      ... will still be unregistered (removed from the various lists) but the ... releasecallback won't be called until the last user. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [patch 2] mm: speculative get_page
      ... I'm in the process of recovering one of those with an earlier set ... need to be an atomic flag though, so it can be an "impossible" ... Send instant messages to your online friends http://au.messenger.yahoo.com ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)