Lines Matching refs:mm
38 #include <linux/mm.h>
49 #include <linux/sched/mm.h>
1636 * holding locks involved in process management. All mm migrations are
1643 struct mm_struct *mm;
1653 do_migrate_pages(mwork->mm, &mwork->from, &mwork->to, MPOL_MF_MOVE_ALL);
1654 mmput(mwork->mm);
1658 static void cpuset_migrate_mm(struct mm_struct *mm, const nodemask_t *from, const nodemask_t *to)
1664 mwork->mm = mm;
1670 mmput(mm);
1733 * It's ok if we rebind the same mm twice; mpol_rebind_mm()
1734 * is idempotent. Also migrate pages in each mm to new nodes.
1738 struct mm_struct *mm;
1743 mm = get_task_mm(task);
1744 if (!mm) {
1750 mpol_rebind_mm(mm, &cs->mems_allowed);
1752 cpuset_migrate_mm(mm, &cs->old_mems_allowed, &newmems);
1754 mmput(mm);
1835 * lock each such tasks mm->mmap_lock, scan its vma's and rebind
2287 * Change mm for all threadgroup leaders. This is expensive and may
2293 struct mm_struct *mm = get_task_mm(leader);
2295 if (mm) {
2296 mpol_rebind_mm(mm, &cpuset_attach_nodemask_to);
2304 * migrate mm from.
2307 cpuset_migrate_mm(mm, &oldcs->old_mems_allowed, &cpuset_attach_nodemask_to);
2309 mmput(mm);
3528 * The first call here from mm/page_alloc:get_page_from_freelist()