Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 151545
b: refs/heads/master
c: b6e68bc
h: refs/heads/master
i:
  151543: fde6b1d
v: v3
  • Loading branch information
Mel Gorman authored and Linus Torvalds committed Jun 17, 2009
1 parent 7226dee commit e9331c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: 62bc62a873116805774ffd37d7f86aa4faa832b1
refs/heads/master: b6e68bc1baed9b6972a250aba66b8c5276cf6fb1
7 changes: 2 additions & 5 deletions trunk/mm/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,6 @@ static void __slab_error(const char *function, struct kmem_cache *cachep,
*/

static int use_alien_caches __read_mostly = 1;
static int numa_platform __read_mostly = 1;
static int __init noaliencache_setup(char *s)
{
use_alien_caches = 0;
Expand Down Expand Up @@ -1457,10 +1456,8 @@ void __init kmem_cache_init(void)
int order;
int node;

if (num_possible_nodes() == 1) {
if (num_possible_nodes() == 1)
use_alien_caches = 0;
numa_platform = 0;
}

for (i = 0; i < NUM_INIT_LISTS; i++) {
kmem_list3_init(&initkmem_list3[i]);
Expand Down Expand Up @@ -3590,7 +3587,7 @@ static inline void __cache_free(struct kmem_cache *cachep, void *objp)
* variable to skip the call, which is mostly likely to be present in
* the cache.
*/
if (numa_platform && cache_free_alien(cachep, objp))
if (nr_online_nodes > 1 && cache_free_alien(cachep, objp))
return;

if (likely(ac->avail < ac->limit)) {
Expand Down

0 comments on commit e9331c2

Please sign in to comment.