Re: [PATCH 10/28] FS-Cache: Recruit a couple of page flags for cache management [try #2]

From: David Howells
Date: Wed Jan 02 2008 - 11:27:42 EST


Nick Piggin <nickpiggin@xxxxxxxxxxxx> wrote:

> Then make a PG_private2 bit and use that.

To what end? Are you suggesting I should have:

PG_private2 = PG_private | PG_fscache

That's redundant information and doesn't help anything really.

My suggestion (PG_private and PG_fscache separate and independent) is pretty
efficient to actually render into machine instructions, especially if the two
bits are placed in the lower part of the word. On x86, the test for both bits
can be done with a single TEST instruction, and on most RISC archs, a MOVE and
a single AND will usually suffice.

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