Re: [PATCH] mm: Fixup the condition whether the page cache is free

2013-03-04 Thread Li Haifeng
Thanks very much for you explanation. :-) 2013/3/4 Johannes Weiner : > On Mon, Mar 04, 2013 at 09:54:26AM +0800, Li Haifeng wrote: >> When a page cache is to reclaim, we should to decide whether the page >> cache is free. >> IMO, the condition whether a page cache is free should be 3 in page >>

Re: [PATCH] mm: Fixup the condition whether the page cache is free

2013-03-04 Thread Johannes Weiner
On Mon, Mar 04, 2013 at 09:54:26AM +0800, Li Haifeng wrote: > When a page cache is to reclaim, we should to decide whether the page > cache is free. > IMO, the condition whether a page cache is free should be 3 in page > frame reclaiming. The reason lists as below. > > When page is allocated, the

Re: [PATCH] mm: Fixup the condition whether the page cache is free

2013-03-04 Thread Johannes Weiner
On Mon, Mar 04, 2013 at 09:54:26AM +0800, Li Haifeng wrote: When a page cache is to reclaim, we should to decide whether the page cache is free. IMO, the condition whether a page cache is free should be 3 in page frame reclaiming. The reason lists as below. When page is allocated, the

Re: [PATCH] mm: Fixup the condition whether the page cache is free

2013-03-04 Thread Li Haifeng
Thanks very much for you explanation. :-) 2013/3/4 Johannes Weiner han...@cmpxchg.org: On Mon, Mar 04, 2013 at 09:54:26AM +0800, Li Haifeng wrote: When a page cache is to reclaim, we should to decide whether the page cache is free. IMO, the condition whether a page cache is free should be 3

[PATCH] mm: Fixup the condition whether the page cache is free

2013-03-03 Thread Li Haifeng
When a page cache is to reclaim, we should to decide whether the page cache is free. IMO, the condition whether a page cache is free should be 3 in page frame reclaiming. The reason lists as below. When page is allocated, the page->_count is 1(code fragment is code-1 ). And when the page is

[PATCH] mm: Fixup the condition whether the page cache is free

2013-03-03 Thread Li Haifeng
When a page cache is to reclaim, we should to decide whether the page cache is free. IMO, the condition whether a page cache is free should be 3 in page frame reclaiming. The reason lists as below. When page is allocated, the page-_count is 1(code fragment is code-1 ). And when the page is