Re: Wiring down Pages

2000-12-22 Thread Rik van Riel
On Thu, 21 Dec 2000, Robert Read wrote: > On Thu, Dec 21, 2000 at 06:46:33PM -0200, Rik van Riel wrote: > > > > page_cache_drop(page); <= removes your extra count > > I can't find that function, do you mean page_cache_free() and > page_cache_release(), both are aliases for __free_page(). Maybe

Re: Wiring down Pages

2000-12-22 Thread Rik van Riel
On Thu, 21 Dec 2000, Robert Read wrote: On Thu, Dec 21, 2000 at 06:46:33PM -0200, Rik van Riel wrote: page_cache_drop(page); = removes your extra count I can't find that function, do you mean page_cache_free() and page_cache_release(), both are aliases for __free_page(). Maybe we need

Re: Wiring down Pages

2000-12-21 Thread Robert Read
On Thu, Dec 21, 2000 at 06:46:33PM -0200, Rik van Riel wrote: > > page_cache_drop(page); <= removes your extra count I can't find that function, do you mean page_cache_free() and page_cache_release(), both are aliases for __free_page(). Maybe we need another alias. :) Should non-page cache

Re: Wiring down Pages

2000-12-21 Thread Rik van Riel
On Fri, 22 Dec 2000, Sourav Sen wrote: > Suppose I want to wire-down( as they call in BSD ) a page > in memory, how I go about doing that? (I guess by setting the > PG_locked bit of the flags field in the struct page, I can do > it, am I right?) Linux simply uses page->count for this. By

Wiring down Pages

2000-12-21 Thread Sourav Sen
Hi, I am a novice in this exciting kernel world, so my questions may be a bit naive, please bear with me.(I am student at IISc, Bangalore). Suppose I want to wire-down( as they call in BSD ) a page in memory, how I go about doing that? (I guess by setting the PG_locked bit of

Wiring down Pages

2000-12-21 Thread Sourav Sen
Hi, I am a novice in this exciting kernel world, so my questions may be a bit naive, please bear with me.(I am student at IISc, Bangalore). Suppose I want to wire-down( as they call in BSD ) a page in memory, how I go about doing that? (I guess by setting the PG_locked bit of

Re: Wiring down Pages

2000-12-21 Thread Rik van Riel
On Fri, 22 Dec 2000, Sourav Sen wrote: Suppose I want to wire-down( as they call in BSD ) a page in memory, how I go about doing that? (I guess by setting the PG_locked bit of the flags field in the struct page, I can do it, am I right?) Linux simply uses page-count for this. By using

Re: Wiring down Pages

2000-12-21 Thread Robert Read
On Thu, Dec 21, 2000 at 06:46:33PM -0200, Rik van Riel wrote: page_cache_drop(page); = removes your extra count I can't find that function, do you mean page_cache_free() and page_cache_release(), both are aliases for __free_page(). Maybe we need another alias. :) Should non-page cache