Messages in this thread | | | Date | Fri, 29 Dec 2000 13:51:33 -0800 (PST) | From | Linus Torvalds <> | Subject | Re: test13-pre5 |
| |
On Fri, 29 Dec 2000, David S. Miller wrote: > > For my development testing, I'm running a _heavily_ hacked > kernel. One of these hacks is to pull the wait_queue_head out of > struct page; the waitq-heads are in a separate allocated area of > memory, with a waitq-head pointer embedded in the page structure > (allocated/initialised in free_area_init_core()). This gives a > page structure of 60bytes, giving me one free double-word to play > with (which I'm using as a pointer to a release function). > > Not something like those damn Solaris turnstiles, no please....
If you want to have a release function, please just use "page->mapping", which gives you much more, including memory pressure indicators etc. Now _that_ can be useful for doing things like slab caches.
Linus
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
| |