Re: [PATCH] rmaplock 1/6 PageAnon in mapping
From: Hugh Dickins
Date: Tue Jul 13 2004 - 02:09:19 EST
On Mon, 12 Jul 2004, Andrew Morton wrote:
> Hugh Dickins <hugh@xxxxxxxxxxx> wrote:
> >
> > Replace the PG_anon page->flags bit by setting the lower bit of the
> > pointer in page->mapping when it's anon_vma: PAGE_MAPPING_ANON bit.
>
> This is likely to cause conniptions in various quarters. Is there no
> alternative?
I've little doubt barriers would provide an alternative;
but I'm hopeless with barriers, so couldn't manage it myself;
and not alone in finding them difficult; and surely more expensive.
> It might make things more palatable to hide the setting, clearing testing
> amd masking of this bit behind some set of wrapper functions. Maybe.
Conniptious in some quarters that the name shouts too. But where does it
appear? In mm.h, the inlines to hide it from wider gaze. And just four
times in rmap.c. I'd have been happier to say three times, but even so,
I don't think burying it deeper helps anyone.
Hugh
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/