Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40114
b: refs/heads/master
c: aedb0eb
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Lameter authored and Linus Torvalds committed Oct 21, 2006
1 parent 22a961a commit ed72fa7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7516795739bd53175629b90fab0ad488d7a6a9f7
refs/heads/master: aedb0eb107961a234f7c38e53da65a8f7ea992a9
11 changes: 7 additions & 4 deletions trunk/mm/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -3152,12 +3152,15 @@ void *fallback_alloc(struct kmem_cache *cache, gfp_t flags)
struct zone **z;
void *obj = NULL;

for (z = zonelist->zones; *z && !obj; z++)
for (z = zonelist->zones; *z && !obj; z++) {
int nid = zone_to_nid(*z);

if (zone_idx(*z) <= ZONE_NORMAL &&
cpuset_zone_allowed(*z, flags))
cpuset_zone_allowed(*z, flags) &&
cache->nodelists[nid])
obj = __cache_alloc_node(cache,
flags | __GFP_THISNODE,
zone_to_nid(*z));
flags | __GFP_THISNODE, nid);
}
return obj;
}

Expand Down

0 comments on commit ed72fa7

Please sign in to comment.