From a0bbbc2b5f03828bc5c901ea2348c3f026481e17 Mon Sep 17 00:00:00 2001 From: Christoph Lameter Date: Tue, 6 Nov 2007 20:08:24 -0800 Subject: [PATCH] Slab defrag: Provide empty kmem_cache_setup_defrag function for SLAB. Provide an empty function to satisfy dependencies for Slab defrag. Signed-off-by: Christoph Lameter ? --- mm/slab.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/mm/slab.c b/mm/slab.c index e1192e1..549e855 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -2535,6 +2535,13 @@ static int __cache_shrink(struct kmem_cache *cachep) return (ret ? 1 : 0); } +void kmem_cache_setup_defrag(struct kmem_cache *s, + void *(*get)(struct kmem_cache *, int nr, void **), + void (*kick)(struct kmem_cache *, int nr, void **, void *private)) +{ +} +EXPORT_SYMBOL(kmem_cache_setup_defrag); + /** * kmem_cache_shrink - Shrink a cache. * @cachep: The cache to shrink. -- 1.5.3.4