diff options
| -rw-r--r-- | mm/page_alloc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 33f6745bb649..0303a3b24610 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
| @@ -4165,11 +4165,12 @@ retry: | |||
| 4165 | alloc_flags = reserve_flags; | 4165 | alloc_flags = reserve_flags; |
| 4166 | 4166 | ||
| 4167 | /* | 4167 | /* |
| 4168 | * Reset the zonelist iterators if memory policies can be ignored. | 4168 | * Reset the nodemask and zonelist iterators if memory policies can be |
| 4169 | * These allocations are high priority and system rather than user | 4169 | * ignored. These allocations are high priority and system rather than |
| 4170 | * orientated. | 4170 | * user oriented. |
| 4171 | */ | 4171 | */ |
| 4172 | if (!(alloc_flags & ALLOC_CPUSET) || reserve_flags) { | 4172 | if (!(alloc_flags & ALLOC_CPUSET) || reserve_flags) { |
| 4173 | ac->nodemask = NULL; | ||
| 4173 | ac->preferred_zoneref = first_zones_zonelist(ac->zonelist, | 4174 | ac->preferred_zoneref = first_zones_zonelist(ac->zonelist, |
| 4174 | ac->high_zoneidx, ac->nodemask); | 4175 | ac->high_zoneidx, ac->nodemask); |
| 4175 | } | 4176 | } |
