diff options
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -2123,6 +2123,8 @@ static int __init_refok setup_cpu_cache(struct kmem_cache *cachep) | |||
2123 | * | 2123 | * |
2124 | * @name must be valid until the cache is destroyed. This implies that | 2124 | * @name must be valid until the cache is destroyed. This implies that |
2125 | * the module calling this has to destroy the cache before getting unloaded. | 2125 | * the module calling this has to destroy the cache before getting unloaded. |
2126 | * Note that kmem_cache_name() is not guaranteed to return the same pointer, | ||
2127 | * therefore applications must manage it themselves. | ||
2126 | * | 2128 | * |
2127 | * The flags are | 2129 | * The flags are |
2128 | * | 2130 | * |
@@ -2997,7 +2999,7 @@ retry: | |||
2997 | * there must be at least one object available for | 2999 | * there must be at least one object available for |
2998 | * allocation. | 3000 | * allocation. |
2999 | */ | 3001 | */ |
3000 | BUG_ON(slabp->inuse < 0 || slabp->inuse >= cachep->num); | 3002 | BUG_ON(slabp->inuse >= cachep->num); |
3001 | 3003 | ||
3002 | while (slabp->inuse < cachep->num && batchcount--) { | 3004 | while (slabp->inuse < cachep->num && batchcount--) { |
3003 | STATS_INC_ALLOCED(cachep); | 3005 | STATS_INC_ALLOCED(cachep); |
@@ -3686,9 +3688,9 @@ void *__kmalloc_node(size_t size, gfp_t flags, int node) | |||
3686 | EXPORT_SYMBOL(__kmalloc_node); | 3688 | EXPORT_SYMBOL(__kmalloc_node); |
3687 | 3689 | ||
3688 | void *__kmalloc_node_track_caller(size_t size, gfp_t flags, | 3690 | void *__kmalloc_node_track_caller(size_t size, gfp_t flags, |
3689 | int node, void *caller) | 3691 | int node, unsigned long caller) |
3690 | { | 3692 | { |
3691 | return __do_kmalloc_node(size, flags, node, caller); | 3693 | return __do_kmalloc_node(size, flags, node, (void *)caller); |
3692 | } | 3694 | } |
3693 | EXPORT_SYMBOL(__kmalloc_node_track_caller); | 3695 | EXPORT_SYMBOL(__kmalloc_node_track_caller); |
3694 | #else | 3696 | #else |
@@ -3730,9 +3732,9 @@ void *__kmalloc(size_t size, gfp_t flags) | |||
3730 | } | 3732 | } |
3731 | EXPORT_SYMBOL(__kmalloc); | 3733 | EXPORT_SYMBOL(__kmalloc); |
3732 | 3734 | ||
3733 | void *__kmalloc_track_caller(size_t size, gfp_t flags, void *caller) | 3735 | void *__kmalloc_track_caller(size_t size, gfp_t flags, unsigned long caller) |
3734 | { | 3736 | { |
3735 | return __do_kmalloc(size, flags, caller); | 3737 | return __do_kmalloc(size, flags, (void *)caller); |
3736 | } | 3738 | } |
3737 | EXPORT_SYMBOL(__kmalloc_track_caller); | 3739 | EXPORT_SYMBOL(__kmalloc_track_caller); |
3738 | 3740 | ||