Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19836
b: refs/heads/master
c: 7a21ef6
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Feb 5, 2006
1 parent 5971118 commit c1d9f28
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 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: c265c46bbb8c53db0bd084261ab2996c6d74aebf
refs/heads/master: 7a21ef6fe902ac0ad53b45af6851ae5ec3a64299
11 changes: 8 additions & 3 deletions trunk/mm/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -900,12 +900,18 @@ static void drain_alien_cache(struct kmem_cache *cachep, struct array_cache **al
}
}
#else
#define alloc_alien_cache(node, limit) do { } while (0)

#define drain_alien_cache(cachep, alien) do { } while (0)

static inline struct array_cache **alloc_alien_cache(int node, int limit)
{
return (struct array_cache **) 0x01020304ul;
}

static inline void free_alien_cache(struct array_cache **ac_ptr)
{
}

#endif

static int __devinit cpuup_callback(struct notifier_block *nfb,
Expand Down Expand Up @@ -970,11 +976,10 @@ static int __devinit cpuup_callback(struct notifier_block *nfb,
0xbaadf00d);
if (!shared)
goto bad;
#ifdef CONFIG_NUMA

alien = alloc_alien_cache(node, cachep->limit);
if (!alien)
goto bad;
#endif
cachep->array[cpu] = nc;

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

0 comments on commit c1d9f28

Please sign in to comment.