Re: [PATCH] Scalable page cache

David S. Miller (davem@redhat.com)
Mon, 26 Nov 2001 11:18:54 -0800 (PST)


From: Ingo Molnar <mingo@elte.hu>
Date: Mon, 26 Nov 2001 22:09:02 +0100 (CET)

something like this:

- #define SetPageReferenced(page) set_bit(PG_referenced, &(page)->flags)
+ #define SetPageReferenced(page) \
+ if (!test_bit(PG_referenced), &(page)->flags) \
+ set_bit(PG_referenced, &(page)->flags)

On some platforms all the {test_,}{clear,change,set}_bit() ops give
you this cache behavior. How hard would it be to make ix86 act
similarly?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/