mm/slab: Fix kmem_cache_alloc_node_trace() declaration
This bug was introduced in commit 4052147
("mm, slab: Match SLAB and
SLUB kmem_cache_alloc_xxx_trace() prototype").
Cc: David Rientjes <rientjes@google.com>
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
parent
c0b24b5100
commit
dffa3f9850
|
@ -159,16 +159,16 @@ extern void *__kmalloc_node(size_t size, gfp_t flags, int node);
|
||||||
extern void *kmem_cache_alloc_node(struct kmem_cache *, gfp_t flags, int node);
|
extern void *kmem_cache_alloc_node(struct kmem_cache *, gfp_t flags, int node);
|
||||||
|
|
||||||
#ifdef CONFIG_TRACING
|
#ifdef CONFIG_TRACING
|
||||||
extern void *kmem_cache_alloc_node_trace(size_t size,
|
extern void *kmem_cache_alloc_node_trace(struct kmem_cache *cachep,
|
||||||
struct kmem_cache *cachep,
|
|
||||||
gfp_t flags,
|
gfp_t flags,
|
||||||
int nodeid);
|
int nodeid,
|
||||||
|
size_t size);
|
||||||
#else
|
#else
|
||||||
static __always_inline void *
|
static __always_inline void *
|
||||||
kmem_cache_alloc_node_trace(size_t size,
|
kmem_cache_alloc_node_trace(struct kmem_cache *cachep,
|
||||||
struct kmem_cache *cachep,
|
|
||||||
gfp_t flags,
|
gfp_t flags,
|
||||||
int nodeid)
|
int nodeid,
|
||||||
|
size_t size)
|
||||||
{
|
{
|
||||||
return kmem_cache_alloc_node(cachep, flags, nodeid);
|
return kmem_cache_alloc_node(cachep, flags, nodeid);
|
||||||
}
|
}
|
||||||
|
@ -200,7 +200,7 @@ found:
|
||||||
#endif
|
#endif
|
||||||
cachep = malloc_sizes[i].cs_cachep;
|
cachep = malloc_sizes[i].cs_cachep;
|
||||||
|
|
||||||
return kmem_cache_alloc_node_trace(size, cachep, flags, node);
|
return kmem_cache_alloc_node_trace(cachep, flags, node, size);
|
||||||
}
|
}
|
||||||
return __kmalloc_node(size, flags, node);
|
return __kmalloc_node(size, flags, node);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue