Re: [PATCH -v4 RESEND 8/9] mm, THP, swap: Support to split THP in swap cache

2016-10-30 Thread Huang, Ying
Hillf Danton writes: > On Friday, October 28, 2016 1:56 PM Huang, Ying wrote: >> @@ -2016,10 +2021,12 @@ int page_trans_huge_mapcount(struct page *page, int >> *total_mapcount) >> /* Racy check whether the huge page can be split */ >> bool can_split_huge_page(struct page *page) >> { >> -

Re: [PATCH -v4 RESEND 8/9] mm, THP, swap: Support to split THP in swap cache

2016-10-28 Thread Hillf Danton
On Friday, October 28, 2016 1:56 PM Huang, Ying wrote: > @@ -2016,10 +2021,12 @@ int page_trans_huge_mapcount(struct page *page, int > *total_mapcount) > /* Racy check whether the huge page can be split */ > bool can_split_huge_page(struct page *page) > { > - int extra_pins = 0; > + in

[PATCH -v4 RESEND 8/9] mm, THP, swap: Support to split THP in swap cache

2016-10-27 Thread Huang, Ying
From: Huang Ying This patch enhanced the split_huge_page_to_list() to work properly for the THP (Transparent Huge Page) in the swap cache during swapping out. This is used for delaying splitting the THP during swapping out. Where for a THP to be swapped out, we will allocate a swap cluster, add