lkml.org 
[lkml]   [2018]   [Jul]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH -mm -v4 02/21] mm, THP, swap: Make CONFIG_THP_SWAP depends on CONFIG_SWAP
Date
Dave Hansen <dave.hansen@linux.intel.com> writes:

> On 07/09/2018 06:19 PM, Huang, Ying wrote:
>> Dave Hansen <dave.hansen@linux.intel.com> writes:
>>
>>>> config THP_SWAP
>>>> def_bool y
>>>> - depends on TRANSPARENT_HUGEPAGE && ARCH_WANTS_THP_SWAP
>>>> + depends on TRANSPARENT_HUGEPAGE && ARCH_WANTS_THP_SWAP && SWAP
>>>> help
>>>
>>> This seems like a bug-fix. Is there a reason this didn't cause problems
>>> up to now?
>> Yes. The original code has some problem in theory, but not in practice
>> because all code enclosed by
>>
>> #ifdef CONFIG_THP_SWAP
>> #endif
>>
>> are in swapfile.c. But that will be not true in this patchset.
>
> That's great info for the changelog.

Sure. Will add it.

Best Regards,
Huang, Ying

\
 
 \ /
  Last update: 2018-07-10 07:28    [W:0.432 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site