Re: [PATCH 10/19] mm, mpol: Use special PROT_NONE to migrate pages

2012-08-09 Thread Andrea Arcangeli
On Tue, Jul 31, 2012 at 09:12:14PM +0200, Peter Zijlstra wrote: > +#ifdef CONFIG_NUMA > /* > - * Do fancy stuff... > + * For NUMA systems we use the special PROT_NONE maps to drive > + * lazy page migration, see MPOL_MF_LAZY and related. >*/ > + page = vm_normal_pag

Re: [PATCH 10/19] mm, mpol: Use special PROT_NONE to migrate pages

2012-07-31 Thread Rik van Riel
On 07/31/2012 03:12 PM, Peter Zijlstra wrote: + if (unlikely(pmd_trans_splitting(entry))) { + spin_unlock(&mm->page_table_lock); + wait_split_huge_page(vma->anon_vma, pmd); + return; + } + +#ifdef CONFIG_NUMA + page = pmd_page(entry); +