Re: [PATCH 2/2] Optimize compound_head() by avoiding a shared pageflag

From: Christoph Lameter
Date: Sat Apr 07 2007 - 20:21:55 EST


On Sat, 7 Apr 2007, Andrew Morton wrote:

> Which is all a ton of fun, but this subversion of the architecture's
> freedom to use volatile, memory barriers etc is a worry. We do the same in
> page_alloc.c, of course...

I just tried the approach that we discussed earlier and it was not
nice either. Lets just use a page flag please. This check will be in
several hot code paths. And it may become more important because the file
system folks want to support buffers > page size. Then we may want more
transparent support for huge pages... For all of this page->private gets
in the way.

And I think we curently have 5 or so page flags available?

-
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/