Re: [PATCH -v3 05/10] mm, THP, swap: Add get_huge_swap_page()

2016-09-08 Thread Huang, Ying
"Kirill A. Shutemov" writes: > On Wed, Sep 07, 2016 at 09:46:04AM -0700, Huang, Ying wrote: >> From: Huang Ying >> >> A variation of get_swap_page(), get_huge_swap_page(), is added to >> allocate a swap cluster (512 swap slots) based on the swap cluster >> allocation function. A fair simple al

Re: [PATCH -v3 05/10] mm, THP, swap: Add get_huge_swap_page()

2016-09-08 Thread Kirill A. Shutemov
On Wed, Sep 07, 2016 at 09:46:04AM -0700, Huang, Ying wrote: > From: Huang Ying > > A variation of get_swap_page(), get_huge_swap_page(), is added to > allocate a swap cluster (512 swap slots) based on the swap cluster > allocation function. A fair simple algorithm is used, that is, only the > f

[PATCH -v3 05/10] mm, THP, swap: Add get_huge_swap_page()

2016-09-07 Thread Huang, Ying
From: Huang Ying A variation of get_swap_page(), get_huge_swap_page(), is added to allocate a swap cluster (512 swap slots) based on the swap cluster allocation function. A fair simple algorithm is used, that is, only the first swap device in priority list will be tried to allocate the swap clus