LWN.net Logo

Why struct meta_page?

Why struct meta_page?

Posted Aug 3, 2007 14:37 UTC (Fri) by i3839 (subscriber, #31386)
In reply to: Why struct meta_page? by balbir_singh
Parent article: Controlling memory use in containers

Unrelated to the above, your patch has

+#define PG_metapage 21 /* Used for checking if a meta_page */
+ /* is associated with a page */

but the flag only seems to be used for locking, not for checking anything like the comment says?


(Log in to post comments)

Why struct meta_page?

Posted Aug 4, 2007 9:30 UTC (Sat) by balbir_singh (subscriber, #34142) [Link]

Yes, it is used for locking. The idea is to atomically check if a meta_page is already associated with a page.

Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds