Re: [PATCH v2 04/10] mm: make the try_to_munlock void function

2017-04-10 Thread Minchan Kim
Hi Sasha, On Sat, Apr 08, 2017 at 03:18:35AM +, alexander.le...@verizon.com wrote: > On Wed, Mar 15, 2017 at 02:24:47PM +0900, Minchan Kim wrote: > > try_to_munlock returns SWAP_MLOCK if the one of VMAs mapped > > the page has VM_LOCKED flag. In that time, VM set PG_mlocked to > > the page if

Re: [PATCH v2 04/10] mm: make the try_to_munlock void function

2017-04-07 Thread alexander . levin
On Wed, Mar 15, 2017 at 02:24:47PM +0900, Minchan Kim wrote: > try_to_munlock returns SWAP_MLOCK if the one of VMAs mapped > the page has VM_LOCKED flag. In that time, VM set PG_mlocked to > the page if the page is not pte-mapped THP which cannot be > mlocked, either. > > With that, __munlock_isol

Re: [PATCH v2 04/10] mm: make the try_to_munlock void function

2017-03-15 Thread Vlastimil Babka
On 03/15/2017 06:24 AM, Minchan Kim wrote: > try_to_munlock returns SWAP_MLOCK if the one of VMAs mapped > the page has VM_LOCKED flag. In that time, VM set PG_mlocked to > the page if the page is not pte-mapped THP which cannot be > mlocked, either. > > With that, __munlock_isolated_page can use

[PATCH v2 04/10] mm: make the try_to_munlock void function

2017-03-14 Thread Minchan Kim
try_to_munlock returns SWAP_MLOCK if the one of VMAs mapped the page has VM_LOCKED flag. In that time, VM set PG_mlocked to the page if the page is not pte-mapped THP which cannot be mlocked, either. With that, __munlock_isolated_page can use PageMlocked to check whether try_to_munlock is successf