Re: [RFC 06/11] mm: remove SWAP_MLOCK in ttu

2017-03-07 Thread Minchan Kim
On Tue, Mar 07, 2017 at 06:24:37PM +0300, Kirill A. Shutemov wrote: > On Mon, Mar 06, 2017 at 11:15:08AM +0900, Minchan Kim wrote: > > Hi Anshuman, > > > > On Fri, Mar 03, 2017 at 06:06:38PM +0530, Anshuman Khandual wrote: > > > On 03/02/2017 12:09 PM, Minchan Kim wrote: > > > > ttu don't need to

Re: [RFC 06/11] mm: remove SWAP_MLOCK in ttu

2017-03-07 Thread Minchan Kim
On Tue, Mar 07, 2017 at 06:24:37PM +0300, Kirill A. Shutemov wrote: > On Mon, Mar 06, 2017 at 11:15:08AM +0900, Minchan Kim wrote: > > Hi Anshuman, > > > > On Fri, Mar 03, 2017 at 06:06:38PM +0530, Anshuman Khandual wrote: > > > On 03/02/2017 12:09 PM, Minchan Kim wrote: > > > > ttu don't need to

Re: [RFC 06/11] mm: remove SWAP_MLOCK in ttu

2017-03-07 Thread Kirill A. Shutemov
On Mon, Mar 06, 2017 at 11:15:08AM +0900, Minchan Kim wrote: > Hi Anshuman, > > On Fri, Mar 03, 2017 at 06:06:38PM +0530, Anshuman Khandual wrote: > > On 03/02/2017 12:09 PM, Minchan Kim wrote: > > > ttu don't need to return SWAP_MLOCK. Instead, just return SWAP_FAIL > > > because it means the

Re: [RFC 06/11] mm: remove SWAP_MLOCK in ttu

2017-03-07 Thread Kirill A. Shutemov
On Mon, Mar 06, 2017 at 11:15:08AM +0900, Minchan Kim wrote: > Hi Anshuman, > > On Fri, Mar 03, 2017 at 06:06:38PM +0530, Anshuman Khandual wrote: > > On 03/02/2017 12:09 PM, Minchan Kim wrote: > > > ttu don't need to return SWAP_MLOCK. Instead, just return SWAP_FAIL > > > because it means the

Re: [RFC 06/11] mm: remove SWAP_MLOCK in ttu

2017-03-05 Thread Minchan Kim
Hi Anshuman, On Fri, Mar 03, 2017 at 06:06:38PM +0530, Anshuman Khandual wrote: > On 03/02/2017 12:09 PM, Minchan Kim wrote: > > ttu don't need to return SWAP_MLOCK. Instead, just return SWAP_FAIL > > because it means the page is not-swappable so it should move to > > another LRU list(active or

Re: [RFC 06/11] mm: remove SWAP_MLOCK in ttu

2017-03-05 Thread Minchan Kim
Hi Anshuman, On Fri, Mar 03, 2017 at 06:06:38PM +0530, Anshuman Khandual wrote: > On 03/02/2017 12:09 PM, Minchan Kim wrote: > > ttu don't need to return SWAP_MLOCK. Instead, just return SWAP_FAIL > > because it means the page is not-swappable so it should move to > > another LRU list(active or

Re: [RFC 06/11] mm: remove SWAP_MLOCK in ttu

2017-03-03 Thread Anshuman Khandual
On 03/02/2017 12:09 PM, Minchan Kim wrote: > ttu don't need to return SWAP_MLOCK. Instead, just return SWAP_FAIL > because it means the page is not-swappable so it should move to > another LRU list(active or unevictable). putback friends will > move it to right list depending on the page's LRU

Re: [RFC 06/11] mm: remove SWAP_MLOCK in ttu

2017-03-03 Thread Anshuman Khandual
On 03/02/2017 12:09 PM, Minchan Kim wrote: > ttu don't need to return SWAP_MLOCK. Instead, just return SWAP_FAIL > because it means the page is not-swappable so it should move to > another LRU list(active or unevictable). putback friends will > move it to right list depending on the page's LRU

[RFC 06/11] mm: remove SWAP_MLOCK in ttu

2017-03-01 Thread Minchan Kim
ttu don't need to return SWAP_MLOCK. Instead, just return SWAP_FAIL because it means the page is not-swappable so it should move to another LRU list(active or unevictable). putback friends will move it to right list depending on the page's LRU flag. A side effect is shrink_page_list accounts

[RFC 06/11] mm: remove SWAP_MLOCK in ttu

2017-03-01 Thread Minchan Kim
ttu don't need to return SWAP_MLOCK. Instead, just return SWAP_FAIL because it means the page is not-swappable so it should move to another LRU list(active or unevictable). putback friends will move it to right list depending on the page's LRU flag. A side effect is shrink_page_list accounts