[PATCH -mm -v8 2/3] mm, THP, swap: Check whether THP can be split firstly

2017-04-05 Thread Huang, Ying
From: Huang Ying In the original THP swapping out implementation, before splitting the THP (Transparent Huage Page), the swap cluster will be allocated and the THP will be added into the swap cache. But it is possible that the THP cannot be split, and we must delete the

[PATCH -mm -v8 2/3] mm, THP, swap: Check whether THP can be split firstly

2017-04-05 Thread Huang, Ying
From: Huang Ying In the original THP swapping out implementation, before splitting the THP (Transparent Huage Page), the swap cluster will be allocated and the THP will be added into the swap cache. But it is possible that the THP cannot be split, and we must delete the THP from the swap cache