From: Matthew Wilcox <willy@infradead.org>
To: David Hildenbrand <david@redhat.com>
Cc: linux-mm@kvack.org, Kent Overstreet <kent.overstreet@gmail.com>,
Johannes Weiner <hannes@cmpxchg.org>,
linux-fsdevel@vger.kernel.org
Subject: Re: [RFC] pgflags_t
Date: Wed, 6 Oct 2021 16:29:00 +0100 [thread overview]
Message-ID: <YV3AvB2GeC0wK7k9@casper.infradead.org> (raw)
In-Reply-To: <89efcd40-9b56-00d4-1e29-9ad337b35426@redhat.com>
On Wed, Oct 06, 2021 at 05:16:51PM +0200, David Hildenbrand wrote:
> On 06.10.21 16:58, Matthew Wilcox wrote:
> > David expressed some unease about the lack of typesafety in patches
> > 1 & 2 of the page->slab conversion [1], and I'll admit to not being
>
> I yet have to reply to your mail (-EBUSY), I'd even enjoy doing all
> pgflags_t access via the struct page, for example, using simpler "reserved"
> placeholders for such fields in "struct slab" that we really want to move
> out of struct slab later. When accessing flags, we'd cast to "struct page"
> and do the access.
There are several bits that slab/slob/slub use in page->flags currently.
The obvious one is the node ID (whether stored directly or indirected
via section), but also PG_pfmemalloc (aka PG_active), PG_slob_free (aka
PG_private), PG_lock, PG_slab and PG_head, We might be able to change
that too, but for the moment, how about we not explore that path in the
interest of getting something merged that won't preclude exploring that
path sometime in the future?
> ... but whatever approach we use on that fron, this patch is a step into the
> right direction IMHO.
Thank you!
next prev parent reply other threads:[~2021-10-06 15:30 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-06 14:58 [RFC] pgflags_t Matthew Wilcox
2021-10-06 15:16 ` David Hildenbrand
2021-10-06 15:29 ` Matthew Wilcox [this message]
2021-10-06 15:22 ` Al Viro
2021-10-06 15:23 ` David Hildenbrand
2021-10-06 15:28 ` Al Viro
2021-10-06 15:32 ` David Hildenbrand
2021-10-06 15:46 ` Al Viro
2021-10-06 15:47 ` David Hildenbrand
2021-10-06 15:38 ` Matthew Wilcox
2021-10-06 15:48 ` Al Viro
2021-10-07 14:37 ` Vlastimil Babka
2021-10-07 14:48 ` Matthew Wilcox
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=YV3AvB2GeC0wK7k9@casper.infradead.org \
--to=willy@infradead.org \
--cc=david@redhat.com \
--cc=hannes@cmpxchg.org \
--cc=kent.overstreet@gmail.com \
--cc=linux-fsdevel@vger.kernel.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 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).