From: Andrew Morton <akpm@osdl.org>
To: David Howells <dhowells@redhat.com>
Cc: torvalds@osdl.org, wli@holomorphy.com, hch@infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Compound page overhaul
Date: Mon, 22 Nov 2004 15:54:34 -0800 [thread overview]
Message-ID: <20041122155434.758c6fff.akpm@osdl.org> (raw)
In-Reply-To: <11948.1101130077@redhat.com>
David Howells <dhowells@redhat.com> wrote:
>
> The attached patch overhauls compound page handling.
>
> (1) A new bit flag PG_compound_slave has been added. This is used to mark the
> second+ subpages of a compound page, thus making get_page() and
> put_page() able to determine the need to perform weird stuff quickly.
>
> This could be changed to do horribly things with the page count or to
> abuse the page->lru member instead of eating another page flag.
>
> (2) Compound page metadata is now always set on high-order pages when
> allocating and always checked when freeing:
>
> - PG_compound is set on all subpages
> - PG_compound_slave is set on all but the first subpage
> - page[1].index holds the compound page order
> - page[1...N-1].private points to page[0]
> - page[1].mapping may hold a destructor function for put_page()
ugh, sorry, I'd forgotten that !MMU needs to use the fields inside
pages[1]. It seems that the !MMU requirement is in that case quite
dissimilar from what compound pages are supposed to do. Perhaps we should
just forget the whole thing and stick with the current design approach?
next prev parent reply other threads:[~2004-11-22 23:57 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-22 13:27 David Howells
2004-11-22 14:41 ` William Lee Irwin III
2004-11-22 16:07 ` David Howells
2004-11-22 16:34 ` William Lee Irwin III
2004-11-22 23:54 ` Andrew Morton [this message]
2004-11-23 9:18 ` David Howells
2004-11-23 16:11 ` Andrew Morton
2004-11-23 17:10 ` William Lee Irwin III
2004-11-24 14:22 ` Greg Ungerer
2004-11-24 18:03 ` David Howells
2004-11-25 3:37 ` Greg Ungerer
2004-11-23 17:24 ` David Howells
2004-11-23 17:46 ` William Lee Irwin III
2004-11-23 17:51 ` David Howells
2004-11-23 16:48 ` David Howells
2004-11-23 16:56 ` Andrew Morton
2004-11-23 17:48 ` David Howells
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=20041122155434.758c6fff.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=dhowells@redhat.com \
--cc=hch@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
--cc=wli@holomorphy.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
all inboxes | Powered by JetHome®