Re: [PATCH -mm 05/15] free swap space on swap-in/activation

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Rik van Riel <riel@...>
Cc: <lee.schermerhorn@...>, <akpm@...>, <kosaki.motohiro@...>, <linux-kernel@...>
Date: Monday, May 12, 2008 - 7:21 am

Hi.

I have a question about the intention of this patch.

I think all the remove_exclusive_swap_page() you have added
are called while the _count of the page is incremented by
__isolate_lru_page().

So, IMHO, swap caches that will be freed by this patch should have
page counts from __isolate_lru_page() and the swap cache itself.

They are different from, for example, those are freed by do_swap_page()
-> remove_exclusive_swap_page(), that is, swap caches
that have been just mapped and have page counts from
the process(only user of the page) and the swap cache itself.

So, the intention of this patch is
not to free a swap space of swap cache that has already swapped in
and only used one process as do_swap_page() does,
but to free a swap space that is only used as a swap cache
(not used by any processes), right?


Regards,
Daisuke Nishimura.

Rik van Riel wrote:

--
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..., Daisuke Nishimura, (Wed May 14, 10:15 pm)