[PATCH] mm, THP, swap: Check whether CONFIG_THP_SWAP enabled earlier

2017-05-21 Thread Huang, Ying
From: Huang Ying This patch is only a code clean up patch without functionality changes. It moves CONFIG_THP_SWAP checking from inside swap slot allocation to before we start swapping the THP. This makes the code path a little easier to be followed and understood.

[PATCH] mm, THP, swap: Check whether CONFIG_THP_SWAP enabled earlier

2017-05-21 Thread Huang, Ying
From: Huang Ying This patch is only a code clean up patch without functionality changes. It moves CONFIG_THP_SWAP checking from inside swap slot allocation to before we start swapping the THP. This makes the code path a little easier to be followed and understood. Signed-off-by: "Huang, Ying"