diff options
Diffstat (limited to 'mm/mempolicy.c')
-rw-r--r-- | mm/mempolicy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c index a3b44a671cec..08c41da429cf 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c | |||
@@ -661,7 +661,7 @@ static struct zonelist *zonelist_policy(unsigned int __nocast gfp, struct mempol | |||
661 | case MPOL_BIND: | 661 | case MPOL_BIND: |
662 | /* Lower zones don't get a policy applied */ | 662 | /* Lower zones don't get a policy applied */ |
663 | /* Careful: current->mems_allowed might have moved */ | 663 | /* Careful: current->mems_allowed might have moved */ |
664 | if (gfp >= policy_zone) | 664 | if ((gfp & GFP_ZONEMASK) >= policy_zone) |
665 | if (cpuset_zonelist_valid_mems_allowed(policy->v.zonelist)) | 665 | if (cpuset_zonelist_valid_mems_allowed(policy->v.zonelist)) |
666 | return policy->v.zonelist; | 666 | return policy->v.zonelist; |
667 | /*FALL THROUGH*/ | 667 | /*FALL THROUGH*/ |