Re: [PATCH] mm: enforce THP for VM_NOHUGEPAGE dax mappings

2018-09-28 Thread Yang Shi
On 9/28/18 3:36 PM, Dan Williams wrote: On Fri, Sep 28, 2018 at 3:34 PM wrote: commit baabda261424517110ea98c6651f632ebf2561e3 ("mm: always enable thp for dax mappings") says madvise hguepage policy makes less sense for dax, and force enabling thp for dax mappings in all cases, even though T

Re: [PATCH] mm: enforce THP for VM_NOHUGEPAGE dax mappings

2018-09-28 Thread Dan Williams
On Fri, Sep 28, 2018 at 3:34 PM wrote: > > commit baabda261424517110ea98c6651f632ebf2561e3 ("mm: always enable thp > for dax mappings") says madvise hguepage policy makes less sense for > dax, and force enabling thp for dax mappings in all cases, even though > THP is set to "never". > > However, t

[PATCH] mm: enforce THP for VM_NOHUGEPAGE dax mappings

2018-09-28 Thread Yang Shi
commit baabda261424517110ea98c6651f632ebf2561e3 ("mm: always enable thp for dax mappings") says madvise hguepage policy makes less sense for dax, and force enabling thp for dax mappings in all cases, even though THP is set to "never". However, transparent_hugepage_enabled() may return false if VM_