Lines Matching refs:current

615 		 * stopped walking current vma.
715 /* queue pages from current vma */
879 task_lock(current);
880 old = current->mempolicy;
881 current->mempolicy = new;
883 current->il_prev = MAX_NUMNODES-1;
884 task_unlock(current);
939 struct mm_struct *mm = current->mm;
941 struct mempolicy *pol = current->mempolicy, *pol_refcount = NULL;
951 task_lock(current);
953 task_unlock(current);
994 } else if (pol == current->mempolicy &&
996 *policy = next_node_in(current->il_prev, pol->v.nodes);
1016 task_lock(current);
1018 task_unlock(current);
1217 vma = find_vma(current->mm, start);
1268 struct mm_struct *mm = current->mm;
1532 task = pid ? find_task_by_vpid(pid) : current;
1560 task_nodes = cpuset_mems_allowed(current);
1806 * Falls back to current->mempolicy or system default policy, as necessary.
1818 pol = get_task_policy(current);
1840 pol = get_task_policy(current);
1901 struct task_struct *me = current;
1921 policy = current->mempolicy;
2036 * If the current task's mempolicy is "default" [NULL], return 'false'
2044 * because the current task is examining it's own mempolicy and a task's
2054 if (!(mask && current->mempolicy))
2057 task_lock(current);
2058 mempolicy = current->mempolicy;
2076 task_unlock(current);
2162 * a NUMA policy associated with the VMA or the current process.
2193 * allows the current node (or other explicitly preferred
2194 * node) we only try to allocate from the current/preferred
2198 * If the policy is interleave, or does not allow the current
2249 * interrupt context and apply the current process NUMA policy.
2258 pol = get_task_policy(current);
2261 * No reference counting needed for current->mempolicy
2286 * If mpol_dup() sees current->cpuset == cpuset_being_rebound, then it
2292 * current's mempolicy may be rebinded by the other task(the task that changes
2293 * cpuset's mems), so we needn't do rebind work for current task.
2305 if (old == current->mempolicy) {
2306 task_lock(current);
2308 task_unlock(current);
2313 nodemask_t mems = cpuset_mems_allowed(current);
2443 * mpol_misplaced - check whether current page node is valid in policy
2449 * Lookup current policy node id for vma,addr and "compare to" page's
2492 * use current page if in policy nodemask,
2494 * If no allowed nodes, use current [!misplaced].
2513 if (!should_numa_migrate_memory(current, page, curnid, thiscpu))
2651 * On entry, the current task has a reference on a non-NULL @mpol.
2674 task_lock(current);
2676 task_unlock(current);
2837 /* Reset policy of current process to default */