Re: [patch 03/19] define page_file_cache() function

2008-01-08 Thread KAMEZAWA Hiroyuki
On Tue, 8 Jan 2008 17:28:56 -0500 Rik van Riel <[EMAIL PROTECTED]> wrote: > On Tue, 8 Jan 2008 14:18:40 -0800 (PST) > Christoph Lameter <[EMAIL PROTECTED]> wrote: > > > On Tue, 8 Jan 2008, Rik van Riel wrote: > > > > > Define page_file_cache() function to answer the question: > > > is page bac

Re: [patch 03/19] define page_file_cache() function

2008-01-08 Thread Rik van Riel
On Tue, 8 Jan 2008 14:18:40 -0800 (PST) Christoph Lameter <[EMAIL PROTECTED]> wrote: > On Tue, 8 Jan 2008, Rik van Riel wrote: > > > Define page_file_cache() function to answer the question: > > is page backed by a file? > > > +static inline int page_file_cache(struct page *page) > > +{ > >

Re: [patch 03/19] define page_file_cache() function

2008-01-08 Thread Christoph Lameter
On Tue, 8 Jan 2008, Rik van Riel wrote: > Define page_file_cache() function to answer the question: > is page backed by a file? > +static inline int page_file_cache(struct page *page) > +{ > + if (PageSwapBacked(page)) > + return 0; Could we call this PageNotFileBacked or s

[patch 03/19] define page_file_cache() function

2008-01-08 Thread Rik van Riel
Define page_file_cache() function to answer the question: is page backed by a file? Originally part of Rik van Riel's split-lru patch. Extracted to make available for other, independent reclaim patches. Moved inline function to linux/mm_inline.h where it will be needed by subsequent "spl

[patch 03/19] define page_file_cache() function

2008-01-02 Thread linux-kernel
Define page_file_cache() function to answer the question: is page backed by a file? Originally part of Rik van Riel's split-lru patch. Extracted to make available for other, independent reclaim patches. Moved inline function to linux/mm_inline.h where it will be needed by subsequent "spl