summaryrefslogtreecommitdiff
path: root/mm/slab.c
diff options
context:
space:
mode:
authorVlastimil Babka <vbabka@suse.cz>2022-11-10 09:44:07 +0100
committerVlastimil Babka <vbabka@suse.cz>2022-11-21 10:35:37 +0100
commit4b28ba9eeab4345af43e45e6eb4056eb2f1cb764 (patch)
treed40099d9c163394f8dd7ded45d78a28f3610b0ec /mm/slab.c
parentc18c20f16219516b12a4f2fd29c25e06be97e064 (diff)
parent838de63b101147fc7d8af828465cf6d1d30232a8 (diff)
downloadlwn-4b28ba9eeab4345af43e45e6eb4056eb2f1cb764.tar.gz
lwn-4b28ba9eeab4345af43e45e6eb4056eb2f1cb764.zip
Merge branch 'slab/for-6.2/cleanups' into slab/for-next
- Removal of dead code from deactivate_slab() by Hyeonggon Yoo. - Fix of BUILD_BUG_ON() for sufficient early percpu size by Baoquan He. - Make kmem_cache_alloc() kernel-doc less misleading, by myself.
Diffstat (limited to 'mm/slab.c')
-rw-r--r--mm/slab.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 59c8e28f7b6a..f6f3e51317d5 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -3446,16 +3446,6 @@ void *__kmem_cache_alloc_lru(struct kmem_cache *cachep, struct list_lru *lru,
return ret;
}
-/**
- * kmem_cache_alloc - Allocate an object
- * @cachep: The cache to allocate from.
- * @flags: See kmalloc().
- *
- * Allocate an object from this cache. The flags are only relevant
- * if the cache has no available objects.
- *
- * Return: pointer to the new object or %NULL in case of error
- */
void *kmem_cache_alloc(struct kmem_cache *cachep, gfp_t flags)
{
return __kmem_cache_alloc_lru(cachep, NULL, flags);