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/slab.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/slab.c')
-rw-r--r-- | mm/slab.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3541,7 +3541,7 @@ EXPORT_SYMBOL(kmem_cache_zalloc); | |||
3541 | * | 3541 | * |
3542 | * Currently only used for dentry validation. | 3542 | * Currently only used for dentry validation. |
3543 | */ | 3543 | */ |
3544 | int fastcall kmem_ptr_validate(struct kmem_cache *cachep, void *ptr) | 3544 | int fastcall kmem_ptr_validate(struct kmem_cache *cachep, const void *ptr) |
3545 | { | 3545 | { |
3546 | unsigned long addr = (unsigned long)ptr; | 3546 | unsigned long addr = (unsigned long)ptr; |
3547 | unsigned long min_addr = PAGE_OFFSET; | 3547 | unsigned long min_addr = PAGE_OFFSET; |