Lines Matching defs:nodemask

37 #include <linux/nodemask.h>
3419 ac->nodemask) {
3736 ac->nodemask) {
3892 static void warn_alloc_show_mem(gfp_t gfp_mask, nodemask_t *nodemask)
3908 __show_mem(filter, nodemask, gfp_zone(gfp_mask));
3911 void warn_alloc(gfp_t gfp_mask, nodemask_t *nodemask, const char *fmt, ...)
3925 pr_warn("%s: %pV, mode:%#x(%pGg), nodemask=%*pbl",
3927 nodemask_pr_args(nodemask));
3933 warn_alloc_show_mem(gfp_mask, nodemask);
3961 .nodemask = ac->nodemask,
4203 ac->highest_zoneidx, ac->nodemask) {
4311 ac->nodemask);
4371 ac->nodemask) {
4515 ac->highest_zoneidx, ac->nodemask) {
4566 * It's possible that cpuset's mems_allowed and the nodemask from
4571 * This assumes that for all allocations, ac->nodemask can come only
4574 * caller can deal with a violated nodemask.
4576 if (cpusets_enabled() && ac->nodemask &&
4577 !cpuset_nodemask_valid_mems_allowed(ac->nodemask)) {
4578 ac->nodemask = NULL;
4583 * When updating a task's mems_allowed or mempolicy nodemask, it is
4650 * because we might have used different nodemask in the fast path, or
4655 ac->highest_zoneidx, ac->nodemask);
4757 * Reset the nodemask and zonelist iterators if memory policies can be
4762 ac->nodemask = NULL;
4764 ac->highest_zoneidx, ac->nodemask);
4888 warn_alloc(gfp_mask, ac->nodemask,
4895 int preferred_nid, nodemask_t *nodemask,
4901 ac->nodemask = nodemask;
4910 if (in_task() && !ac->nodemask)
4911 ac->nodemask = &cpuset_current_mems_allowed;
4937 ac->highest_zoneidx, ac->nodemask);
4946 * @nodemask: Set of nodes to allocate from, may be NULL
4959 nodemask_t *nodemask, int nr_pages,
5011 if (!prepare_alloc_pages(gfp, 0, preferred_nid, nodemask, &ac, &alloc_gfp, &alloc_flags))
5017 for_next_zone_zonelist_nodemask(zone, z, ac.highest_zoneidx, ac.nodemask) {
5102 page = __alloc_pages_noprof(gfp, 0, preferred_nid, nodemask);
5113 int preferred_nid, nodemask_t *nodemask)
5137 if (!prepare_alloc_pages(gfp, order, preferred_nid, nodemask, &ac,
5156 * Restore the original nodemask if it was potentially replaced with
5159 ac.nodemask = nodemask;
5178 int preferred_nid, nodemask_t *nodemask)
5182 page = __alloc_frozen_pages_noprof(gfp, order, preferred_nid, nodemask);
5190 nodemask_t *nodemask)
5193 preferred_nid, nodemask);
7017 * @nodemask: Mask for other possible nodes
7034 int nid, nodemask_t *nodemask)
7043 gfp_zone(gfp_mask), nodemask) {