projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mm/sl[aou]b: Move kmem_cache refcounting to common code
[deliverable/linux.git]
/
mm
/
slab_common.c
diff --git
a/mm/slab_common.c
b/mm/slab_common.c
index 8a85a19d90ef4bc75304789466c52c8bb8add1c2..651a3c60847a01ae02fbc5c6e300a3d86fc0f951 100644
(file)
--- a/
mm/slab_common.c
+++ b/
mm/slab_common.c
@@
-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);
}
This page took
0.065332 seconds
and
5
git commands to generate.