On 07/20/2015 04:21 PM, Kirill A. Shutemov wrote: > We're going to have THP mapped with PTEs. It will confuse numabalancing. > Let's skip them for now. Fair enough. Acked-by: Jerome Marchand <jmarchan@xxxxxxxxxx> > > Signed-off-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx> > Tested-by: Sasha Levin <sasha.levin@xxxxxxxxxx> > Tested-by: Aneesh Kumar K.V <aneesh.kumar@xxxxxxxxxxxxxxxxxx> > --- > mm/memory.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/mm/memory.c b/mm/memory.c > index 074edab89b52..52f6fa02c099 100644 > --- a/mm/memory.c > +++ b/mm/memory.c > @@ -3186,6 +3186,12 @@ static int do_numa_page(struct mm_struct *mm, struct vm_area_struct *vma, > return 0; > } > > + /* TODO: handle PTE-mapped THP */ > + if (PageCompound(page)) { > + pte_unmap_unlock(ptep, ptl); > + return 0; > + } > + > /* > * Avoid grouping on RO pages in general. RO pages shouldn't hurt as > * much anyway since they can be in shared cache state. This misses >
Attachment:
signature.asc
Description: OpenPGP digital signature