diff options
author | Christoph Lameter <clameter@sgi.com> | 2006-12-13 03:34:24 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-13 12:05:49 -0500 |
commit | 55935a34a428a1497e3b37982e2782c09c6f914d (patch) | |
tree | 270e68db0a0c8819986fd5150d942812a02d8f42 /mm/slob.c | |
parent | 2e892f43ccb602e8ffad73396a1000f2040c9e0b (diff) |
[PATCH] More slab.h cleanups
More cleanups for slab.h
1. Remove tabs from weird locations as suggested by Pekka
2. Drop the check for NUMA and SLAB_DEBUG from the fallback section
as suggested by Pekka.
3. Uses static inline for the fallback defs as also suggested by Pekka.
4. Make kmem_ptr_valid take a const * argument.
5. Separate the NUMA fallback definitions from the kmalloc_track fallback
definitions.
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/slob.c')
-rw-r--r-- | mm/slob.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -334,7 +334,7 @@ int kmem_cache_shrink(struct kmem_cache *d) | |||
334 | } | 334 | } |
335 | EXPORT_SYMBOL(kmem_cache_shrink); | 335 | EXPORT_SYMBOL(kmem_cache_shrink); |
336 | 336 | ||
337 | int kmem_ptr_validate(struct kmem_cache *a, void *b) | 337 | int kmem_ptr_validate(struct kmem_cache *a, const void *b) |
338 | { | 338 | { |
339 | return 0; | 339 | return 0; |
340 | } | 340 | } |