Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330444
b: refs/heads/master
c: cce89f4
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Lameter authored and Pekka Enberg committed Sep 5, 2012
1 parent af6bae8 commit a126a60
Show file tree
Hide file tree
Showing 5 changed files with 4 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: 8a13a4cc80bb25c9eab2e7e56bab724fcfa55fce
refs/heads/master: cce89f4f6911286500cf7be0363f46c9b0a12ce0
1 change: 0 additions & 1 deletion trunk/mm/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -2555,7 +2555,6 @@ __kmem_cache_create (struct kmem_cache *cachep, unsigned long flags)
*/
BUG_ON(ZERO_OR_NULL_PTR(cachep->slabp_cache));
}
cachep->refcount = 1;

err = setup_cpu_cache(cachep, gfp);
if (err) {
Expand Down
5 changes: 3 additions & 2 deletions trunk/mm/slab_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,12 @@ struct kmem_cache *kmem_cache_create(const char *name, size_t size, size_t align
}

err = __kmem_cache_create(s, flags);
if (!err)
if (!err) {

s->refcount = 1;
list_add(&s->list, &slab_caches);

else {
} else {
kfree(s->name);
kmem_cache_free(kmem_cache, s);
}
Expand Down
1 change: 0 additions & 1 deletion trunk/mm/slob.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,6 @@ int __kmem_cache_create(struct kmem_cache *c, unsigned long flags)
if (c->align < align)
c->align = align;

c->refcount = 1;
return 0;
}

Expand Down
1 change: 0 additions & 1 deletion trunk/mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -3093,7 +3093,6 @@ static int kmem_cache_open(struct kmem_cache *s, unsigned long flags)
else
s->cpu_partial = 30;

s->refcount = 1;
#ifdef CONFIG_NUMA
s->remote_node_defrag_ratio = 1000;
#endif
Expand Down

0 comments on commit a126a60

Please sign in to comment.