/* Call holding a reference to mm. Takes mm->mmap_sem during call.  */
void mpol_rebind_mm(struct mm_struct *mm, nodemask_t *new)
/* Call holding a reference to mm. Takes mm->mmap_sem during call.  */
void mpol_rebind_mm(struct mm_struct *mm, nodemask_t *new)
{
	struct vm_area_struct *vma;
	down_write(&mm->mmap_sem);
	for (vma = mm->mmap; vma; vma = vma->vm_next)
		mpol_rebind_policy(vma->vm_policy, new);
	up_write(&mm->mmap_sem);
}