diff options
Diffstat (limited to 'mm/mempolicy.c')
-rw-r--r-- | mm/mempolicy.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c index ad500f3b12bf..d97355b744ab 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c | |||
@@ -1441,15 +1441,13 @@ static struct zonelist *policy_zonelist(gfp_t gfp, struct mempolicy *policy) | |||
1441 | /* | 1441 | /* |
1442 | * Normally, MPOL_BIND allocations are node-local within the | 1442 | * Normally, MPOL_BIND allocations are node-local within the |
1443 | * allowed nodemask. However, if __GFP_THISNODE is set and the | 1443 | * allowed nodemask. However, if __GFP_THISNODE is set and the |
1444 | * current node is part of the mask, we use the zonelist for | 1444 | * current node isn't part of the mask, we use the zonelist for |
1445 | * the first node in the mask instead. | 1445 | * the first node in the mask instead. |
1446 | */ | 1446 | */ |
1447 | if (unlikely(gfp & __GFP_THISNODE) && | 1447 | if (unlikely(gfp & __GFP_THISNODE) && |
1448 | unlikely(!node_isset(nd, policy->v.nodes))) | 1448 | unlikely(!node_isset(nd, policy->v.nodes))) |
1449 | nd = first_node(policy->v.nodes); | 1449 | nd = first_node(policy->v.nodes); |
1450 | break; | 1450 | break; |
1451 | case MPOL_INTERLEAVE: /* should not happen */ | ||
1452 | break; | ||
1453 | default: | 1451 | default: |
1454 | BUG(); | 1452 | BUG(); |
1455 | } | 1453 | } |