Lines Matching refs:nodemask
36 #include <linux/nodemask.h>
1940 ac->nodemask) {
3099 ac->nodemask) {
3242 static void warn_alloc_show_mem(gfp_t gfp_mask, nodemask_t *nodemask)
3258 __show_mem(filter, nodemask, gfp_zone(gfp_mask));
3261 void warn_alloc(gfp_t gfp_mask, nodemask_t *nodemask, const char *fmt, ...)
3275 pr_warn("%s: %pV, mode:%#x(%pGg), nodemask=%*pbl",
3277 nodemask_pr_args(nodemask));
3283 warn_alloc_show_mem(gfp_mask, nodemask);
3312 .nodemask = ac->nodemask,
3554 ac->highest_zoneidx, ac->nodemask) {
3662 ac->nodemask);
3716 ac->nodemask) {
3857 ac->highest_zoneidx, ac->nodemask) {
3903 * It's possible that cpuset's mems_allowed and the nodemask from
3908 * This assumes that for all allocations, ac->nodemask can come only
3911 * caller can deal with a violated nodemask.
3913 if (cpusets_enabled() && ac->nodemask &&
3914 !cpuset_nodemask_valid_mems_allowed(ac->nodemask)) {
3915 ac->nodemask = NULL;
3920 * When updating a task's mems_allowed or mempolicy nodemask, it is
3965 * because we might have used different nodemask in the fast path, or
3970 ac->highest_zoneidx, ac->nodemask);
4064 * Reset the nodemask and zonelist iterators if memory policies can be
4069 ac->nodemask = NULL;
4071 ac->highest_zoneidx, ac->nodemask);
4203 warn_alloc(gfp_mask, ac->nodemask,
4210 int preferred_nid, nodemask_t *nodemask,
4216 ac->nodemask = nodemask;
4225 if (in_task() && !ac->nodemask)
4226 ac->nodemask = &cpuset_current_mems_allowed;
4252 ac->highest_zoneidx, ac->nodemask);
4261 * @nodemask: Set of nodes to allocate from, may be NULL
4278 nodemask_t *nodemask, int nr_pages,
4331 if (!prepare_alloc_pages(gfp, 0, preferred_nid, nodemask, &ac, &alloc_gfp, &alloc_flags))
4336 for_each_zone_zonelist_nodemask(zone, z, ac.zonelist, ac.highest_zoneidx, ac.nodemask) {
4413 page = __alloc_pages(gfp, 0, preferred_nid, nodemask);
4430 nodemask_t *nodemask)
4454 if (!prepare_alloc_pages(gfp, order, preferred_nid, nodemask, &ac,
4473 * Restore the original nodemask if it was potentially replaced with
4476 ac.nodemask = nodemask;
4495 nodemask_t *nodemask)
4498 preferred_nid, nodemask);
6319 * @nodemask: Mask for other possible nodes
6336 int nid, nodemask_t *nodemask)
6345 gfp_zone(gfp_mask), nodemask) {