Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54191
b: refs/heads/master
c: 6310984
h: refs/heads/master
i:
  54189: cffa962
  54187: 8595f94
  54183: fc50255
  54175: 35d4a77
v: v3
  • Loading branch information
Eric Dumazet authored and Linus Torvalds committed May 7, 2007
1 parent cb0cd24 commit d4ea03e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 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: 364fbb29a0105863d76a1f7bbc01783a4af30a75
refs/heads/master: 6310984694c8204ad16a2414cd58808fae68e02b
26 changes: 15 additions & 11 deletions trunk/mm/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -1223,19 +1223,20 @@ static int __cpuinit cpuup_callback(struct notifier_block *nfb,
*/
list_for_each_entry(cachep, &cache_chain, next) {
struct array_cache *nc;
struct array_cache *shared;
struct array_cache *shared = NULL;
struct array_cache **alien = NULL;

nc = alloc_arraycache(node, cachep->limit,
cachep->batchcount);
if (!nc)
goto bad;
shared = alloc_arraycache(node,
if (cachep->shared) {
shared = alloc_arraycache(node,
cachep->shared * cachep->batchcount,
0xbaadf00d);
if (!shared)
goto bad;

if (!shared)
goto bad;
}
if (use_alien_caches) {
alien = alloc_alien_cache(node, cachep->limit);
if (!alien)
Expand Down Expand Up @@ -1317,8 +1318,8 @@ static int __cpuinit cpuup_callback(struct notifier_block *nfb,

shared = l3->shared;
if (shared) {
free_block(cachep, l3->shared->entry,
l3->shared->avail, node);
free_block(cachep, shared->entry,
shared->avail, node);
l3->shared = NULL;
}

Expand Down Expand Up @@ -3870,12 +3871,15 @@ static int alloc_kmemlist(struct kmem_cache *cachep)
goto fail;
}

new_shared = alloc_arraycache(node,
new_shared = NULL;
if (cachep->shared) {
new_shared = alloc_arraycache(node,
cachep->shared*cachep->batchcount,
0xbaadf00d);
if (!new_shared) {
free_alien_cache(new_alien);
goto fail;
if (!new_shared) {
free_alien_cache(new_alien);
goto fail;
}
}

l3 = cachep->nodelists[node];
Expand Down

0 comments on commit d4ea03e

Please sign in to comment.