Lines Matching refs:nodemask
41 #include <linux/nodemask.h>
2696 ac->nodemask) {
3845 ac->nodemask) {
3978 static void warn_alloc_show_mem(gfp_t gfp_mask, nodemask_t *nodemask)
3994 show_mem(filter, nodemask);
3997 void warn_alloc(gfp_t gfp_mask, nodemask_t *nodemask, const char *fmt, ...)
4011 pr_warn("%s: %pV, mode:%#x(%pGg), nodemask=%*pbl",
4013 nodemask_pr_args(nodemask));
4019 warn_alloc_show_mem(gfp_mask, nodemask);
4048 .nodemask = ac->nodemask,
4297 ac->highest_zoneidx, ac->nodemask) {
4398 ac->nodemask);
4455 ac->nodemask) {
4591 ac->highest_zoneidx, ac->nodemask) {
4651 * It's possible that cpuset's mems_allowed and the nodemask from
4656 * This assumes that for all allocations, ac->nodemask can come only
4659 * caller can deal with a violated nodemask.
4661 if (cpusets_enabled() && ac->nodemask &&
4662 !cpuset_nodemask_valid_mems_allowed(ac->nodemask)) {
4663 ac->nodemask = NULL;
4668 * When updating a task's mems_allowed or mempolicy nodemask, it is
4724 * because we might have used different nodemask in the fast path, or
4729 ac->highest_zoneidx, ac->nodemask);
4809 * Reset the nodemask and zonelist iterators if memory policies can be
4814 ac->nodemask = NULL;
4816 ac->highest_zoneidx, ac->nodemask);
4953 warn_alloc(gfp_mask, ac->nodemask,
4960 int preferred_nid, nodemask_t *nodemask,
4966 ac->nodemask = nodemask;
4975 if (!in_interrupt() && !ac->nodemask)
4976 ac->nodemask = &cpuset_current_mems_allowed;
5005 ac->highest_zoneidx, ac->nodemask);
5015 nodemask_t *nodemask)
5033 if (!prepare_alloc_pages(gfp_mask, order, preferred_nid, nodemask, &ac, &alloc_mask, &alloc_flags))
5057 * Restore the original nodemask if it was potentially replaced with
5060 ac.nodemask = nodemask;
5525 static bool show_mem_node_skip(unsigned int flags, int nid, nodemask_t *nodemask)
5535 if (!nodemask)
5536 nodemask = &cpuset_current_mems_allowed;
5538 return !node_isset(nid, *nodemask);
5579 void show_free_areas(unsigned int filter, nodemask_t *nodemask)
5587 if (show_mem_node_skip(filter, zone_to_nid(zone), nodemask))
5620 if (show_mem_node_skip(filter, pgdat->node_id, nodemask))
5677 if (show_mem_node_skip(filter, zone_to_nid(zone), nodemask))
5738 if (show_mem_node_skip(filter, zone_to_nid(zone), nodemask))
7371 /* save the state before borrow the nodemask */
8839 * @nodemask: Mask for other possible nodes
8856 int nid, nodemask_t *nodemask)
8865 gfp_zone(gfp_mask), nodemask) {