Re: [PATCH] take pageout refcount into account for remove_exclusive_swap_page

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Lee Schermerhorn <Lee.Schermerhorn@...>
Cc: Daisuke Nishimura <nishimura@...>, <akpm@...>, <kosaki.motohiro@...>, <linux-kernel@...>
Date: Tuesday, May 13, 2008 - 2:09 pm

On Tue, 13 May 2008 13:43:55 -0400
Lee Schermerhorn <Lee.Schermerhorn@hp.com> wrote:


No, this patch only removes a page from the swap cache that is mapped
by one process.  The function page_mapped() returns either 1 or 0, not
the same as page_mapcount().
 
I am not sure if trying to handle swap cache pages that are mapped by
multiple processes could get us into other corner cases and think that
we should probably try to stick to the safe thing for now.

Besides, shouldn't anonymous shared pages be COW and relatively rare?



-- 
All Rights Reversed
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH -mm 05/15] free swap space on swap-in/activation, Rik van Riel, (Mon Apr 28, 2:18 pm)
Re: [PATCH -mm 05/15] free swap space on swap-in/activation, Daisuke Nishimura, (Mon May 12, 7:21 am)
Re: [PATCH -mm 05/15] free swap space on swap-in/activation, Daisuke Nishimura, (Tue May 13, 9:00 am)
Re: [PATCH] take pageout refcount into account for remove_ex..., Rik van Riel, (Tue May 13, 2:09 pm)
Re: [PATCH] take pageout refcount into account for remove_ex..., Daisuke Nishimura, (Wed May 14, 10:15 pm)