Lines 19-25
Link Here
|
19 |
extern unsigned long alloc; |
19 |
extern unsigned long alloc; |
20 |
|
20 |
|
21 |
static inline void * |
21 |
static inline void * |
22 |
__kmem_malloc_debug(char *s, kmem_cache_t *cache, int flags) |
22 |
__kmem_malloc_debug(char *s, struct kmem_cache *cache, int flags) |
23 |
{ |
23 |
{ |
24 |
if (debug_level >= SHFS_ALLOC) { |
24 |
if (debug_level >= SHFS_ALLOC) { |
25 |
void *x = kmem_cache_alloc(cache, flags); |
25 |
void *x = kmem_cache_alloc(cache, flags); |
Lines 32-38
Link Here
|
32 |
} |
32 |
} |
33 |
|
33 |
|
34 |
static inline void |
34 |
static inline void |
35 |
__kmem_free_debug(char *s, kmem_cache_t *cache, void *p) |
35 |
__kmem_free_debug(char *s, struct kmem_cache *cache, void *p) |
36 |
{ |
36 |
{ |
37 |
if (debug_level >= SHFS_ALLOC) { |
37 |
if (debug_level >= SHFS_ALLOC) { |
38 |
VERBOSE("free (%s): %p\n", s, p); |
38 |
VERBOSE("free (%s): %p\n", s, p); |