mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
mm: Remove support for kmem_cache_name()
The last user was ext4 and Eric Sandeen removed the call in a recent patch. See the following URL for the discussion: http://marc.info/?l=linux-ext4&m=129546975702198&w=2 Signed-off-by: Christoph Lameter <cl@linux.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
parent
1bae4ce27c
commit
63310467a3
@ -105,7 +105,6 @@ void kmem_cache_destroy(struct kmem_cache *);
|
|||||||
int kmem_cache_shrink(struct kmem_cache *);
|
int kmem_cache_shrink(struct kmem_cache *);
|
||||||
void kmem_cache_free(struct kmem_cache *, void *);
|
void kmem_cache_free(struct kmem_cache *, void *);
|
||||||
unsigned int kmem_cache_size(struct kmem_cache *);
|
unsigned int kmem_cache_size(struct kmem_cache *);
|
||||||
const char *kmem_cache_name(struct kmem_cache *);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Please use this macro to create slab caches. Simply specify the
|
* Please use this macro to create slab caches. Simply specify the
|
||||||
|
@ -2147,8 +2147,6 @@ static int __init_refok setup_cpu_cache(struct kmem_cache *cachep, gfp_t gfp)
|
|||||||
*
|
*
|
||||||
* @name must be valid until the cache is destroyed. This implies that
|
* @name must be valid until the cache is destroyed. This implies that
|
||||||
* the module calling this has to destroy the cache before getting unloaded.
|
* the module calling this has to destroy the cache before getting unloaded.
|
||||||
* Note that kmem_cache_name() is not guaranteed to return the same pointer,
|
|
||||||
* therefore applications must manage it themselves.
|
|
||||||
*
|
*
|
||||||
* The flags are
|
* The flags are
|
||||||
*
|
*
|
||||||
@ -3840,12 +3838,6 @@ unsigned int kmem_cache_size(struct kmem_cache *cachep)
|
|||||||
}
|
}
|
||||||
EXPORT_SYMBOL(kmem_cache_size);
|
EXPORT_SYMBOL(kmem_cache_size);
|
||||||
|
|
||||||
const char *kmem_cache_name(struct kmem_cache *cachep)
|
|
||||||
{
|
|
||||||
return cachep->name;
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL_GPL(kmem_cache_name);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This initializes kmem_list3 or resizes various caches for all nodes.
|
* This initializes kmem_list3 or resizes various caches for all nodes.
|
||||||
*/
|
*/
|
||||||
|
@ -666,12 +666,6 @@ unsigned int kmem_cache_size(struct kmem_cache *c)
|
|||||||
}
|
}
|
||||||
EXPORT_SYMBOL(kmem_cache_size);
|
EXPORT_SYMBOL(kmem_cache_size);
|
||||||
|
|
||||||
const char *kmem_cache_name(struct kmem_cache *c)
|
|
||||||
{
|
|
||||||
return c->name;
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL(kmem_cache_name);
|
|
||||||
|
|
||||||
int kmem_cache_shrink(struct kmem_cache *d)
|
int kmem_cache_shrink(struct kmem_cache *d)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -2399,12 +2399,6 @@ unsigned int kmem_cache_size(struct kmem_cache *s)
|
|||||||
}
|
}
|
||||||
EXPORT_SYMBOL(kmem_cache_size);
|
EXPORT_SYMBOL(kmem_cache_size);
|
||||||
|
|
||||||
const char *kmem_cache_name(struct kmem_cache *s)
|
|
||||||
{
|
|
||||||
return s->name;
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL(kmem_cache_name);
|
|
||||||
|
|
||||||
static void list_slab_objects(struct kmem_cache *s, struct page *page,
|
static void list_slab_objects(struct kmem_cache *s, struct page *page,
|
||||||
const char *text)
|
const char *text)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user