• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/kernel/

Lines Matching refs:mems_allowed

77 	nodemask_t mems_allowed;	/* Memory Nodes allowed to tasks */
96 * recent time this cpuset changed its mems_allowed.
152 * mems_allowed value. Users of cpusets can track this generation
153 * number, and avoid having to lock and reload mems_allowed unless
160 * Generations are needed for mems_allowed because one task cannot
163 * its current->cpuset->mems_allowed has changed, requiring an update
164 * of its current->mems_allowed.
174 .mems_allowed = NODE_MASK_ALL,
207 * The task_struct fields mems_allowed and mems_generation may only
583 * Return in *pmask the portion of a cpusets's mems_allowed that
597 while (cs && !nodes_intersects(cs->mems_allowed, node_online_map))
600 nodes_and(*pmask, cs->mems_allowed, node_online_map);
609 * If the current tasks cpusets mems_allowed changed behind our
610 * backs, update current->mems_allowed, mems_generation and task NUMA
642 * This routine is needed to update the per-task mems_allowed data,
668 guarantee_online_mems(cs, &tsk->mems_allowed);
680 mpol_rebind_task(tsk, &tsk->mems_allowed);
695 nodes_subset(p->mems_allowed, q->mems_allowed) &&
714 * perhaps one or more of the fields cpus_allowed, mems_allowed,
748 nodes_intersects(trial->mems_allowed, c->mems_allowed))
858 * Temporarilly set tasks mems_allowed to target nodes of migration,
868 * mems_allowed to synchronize with cpuset_mems_allowed().
871 * other task, the task_struct mems_allowed that we are hacking
876 * our tasks mems_allowed, so that we are assured of being in
880 * values, so won't overwrite our hacked tasks mems_allowed
892 tsk->mems_allowed = *to;
898 guarantee_online_mems(tsk->cpuset, &tsk->mems_allowed);
905 * cpusets mems_allowed and mems_generation, and for each
913 * their mempolicies to the cpusets new mems_allowed.
927 /* top_cpuset.mems_allowed tracks node_online_map; it's read-only */
934 * We allow a cpuset's mems_allowed to be empty; if it has attached
939 nodes_clear(trialcs.mems_allowed);
941 retval = nodelist_parse(buf, trialcs.mems_allowed);
945 nodes_and(trialcs.mems_allowed, trialcs.mems_allowed, node_online_map);
946 oldmem = cs->mems_allowed;
947 if (nodes_equal(oldmem, trialcs.mems_allowed)) {
951 /* mems_allowed cannot be empty for a cpuset with attached tasks. */
952 if (atomic_read(&cs->count) && nodes_empty(trialcs.mems_allowed)) {
961 cs->mems_allowed = trialcs.mems_allowed;
1028 mpol_rebind_mm(mm, &cs->mems_allowed);
1030 cpuset_migrate_mm(mm, &oldmem, &cs->mems_allowed);
1034 /* We're done rebinding vma's to this cpusets new mems_allowed. */
1213 if (cpus_empty(cs->cpus_allowed) || nodes_empty(cs->mems_allowed))
1266 from = oldcs->mems_allowed;
1267 to = cs->mems_allowed;
1432 mask = cs->mems_allowed;
1907 cs->mems_allowed = NODE_MASK_NONE;
2033 top_cpuset.mems_allowed = NODE_MASK_ALL;
2094 if (!nodes_empty(c->mems_allowed))
2095 guarantee_online_mems(c, &c->mems_allowed);
2100 * The cpus_allowed and mems_allowed nodemasks in the top_cpuset track
2122 top_cpuset.mems_allowed = node_online_map;
2147 * Keep top_cpuset.mems_allowed tracking node_online_map.
2167 top_cpuset.mems_allowed = node_online_map;
2300 current->mems_allowed = NODE_MASK_ALL;
2304 * cpuset_mems_allowed - return mems_allowed mask from a tasks cpuset.
2305 * @tsk: pointer to task_struct from which to obtain cpuset->mems_allowed.
2307 * Description: Returns the nodemask_t mems_allowed of the cpuset
2327 * cpuset_zonelist_valid_mems_allowed - check zonelist vs. curremt mems_allowed
2330 * Are any of the nodes on zonelist zl allowed in current->mems_allowed?
2339 if (node_isset(nid, current->mems_allowed))
2365 * z's node is in our tasks mems_allowed, yes. If it's not a
2395 * current tasks mems_allowed came up empty on the first pass over
2432 if (node_isset(node, current->mems_allowed))
2446 /* Not hardwall and node outside mems_allowed: scan up cpusets */
2453 allowed = node_isset(node, cs->mems_allowed);
2465 * z's node is in our tasks mems_allowed, yes. If the task has been
2477 * mems_allowed or that we're in interrupt. It does not scan up the
2489 if (node_isset(node, current->mems_allowed))
2537 * node around the tasks mems_allowed nodes.
2543 * only set nodes in task->mems_allowed that are online. So it
2557 node = next_node(current->cpuset_mem_spread_rotor, current->mems_allowed);
2559 node = first_node(current->mems_allowed);
2598 overlap = nodes_intersects(cs1->mems_allowed, cs2->mems_allowed);
2698 /* Display task cpus_allowed, mems_allowed in /proc/<pid>/status file. */
2705 buffer += nodemask_scnprintf(buffer, PAGE_SIZE, task->mems_allowed);