patch-2.3.99-pre6 linux/mm/slab.c
Next file: linux/mm/swap_state.c
Previous file: linux/mm/page_alloc.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Wed Apr 12 09:12:35 2000
- Orig file:
v2.3.99-pre5/linux/mm/slab.c
- Orig date:
Tue Apr 11 15:09:25 2000
diff -u --recursive --new-file v2.3.99-pre5/linux/mm/slab.c linux/mm/slab.c
@@ -1529,7 +1529,7 @@
* it should be in this state _before_ it is released.
*/
static inline void
-__kmem_cache_free(kmem_cache_t *cachep, const void *objp)
+__kmem_cache_free(kmem_cache_t *cachep, void *objp)
{
kmem_slab_t *slabp;
kmem_bufctl_t *bufp;
@@ -1722,7 +1722,7 @@
*/
cachep = SLAB_GET_PAGE_CACHE(page);
if (cachep && (cachep->c_flags & SLAB_CFLGS_GENERAL)) {
- __kmem_cache_free(cachep, objp);
+ __kmem_cache_free(cachep, (void *)objp);
return;
}
}
@@ -1757,7 +1757,7 @@
cachep = SLAB_GET_PAGE_CACHE(page);
if (cachep && cachep->c_flags & SLAB_CFLGS_GENERAL) {
if (size <= cachep->c_org_size) { /* XXX better check */
- __kmem_cache_free(cachep, objp);
+ __kmem_cache_free(cachep, (void *)objp);
return;
}
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)