login
Header Space

 
 

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

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Rik van Riel <riel@...>
Cc: Daisuke Nishimura <nishimura@...>, <akpm@...>, <kosaki.motohiro@...>, <linux-kernel@...>
Date: Tuesday, May 13, 2008 - 1:43 pm

On Tue, 2008-05-13 at 12:04 -0400, Rik van Riel wrote:

Maybe change comment to "/* count:  us + ptes + cache */" ???


Or, more generally, 2 + N, for an anon page that is mapped [must be
read-only, right?] by N processes.  This can happen after, e.g., fork().
Looks like this patch handles the condition just fine, but you might
want to reflect this in the comment.

Now, I think I can use this to try to remove anon pages from the swap
cache when they're mlocked.


--
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..., Lee Schermerhorn, (Tue May 13, 1:43 pm)
Re: [PATCH] take pageout refcount into account for remove_ex..., Daisuke Nishimura, (Wed May 14, 10:15 pm)
speck-geostationary