From: Aneesh Kumar K.V Date: Mon, 13 Oct 2008 16:14:14 +0000 (-0400) Subject: ext4: Free ext4_prealloc_space using kmem_cache_free X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=688f05a01983711a4e715b1d6e15a89a89c96a66;p=linux-2.6-omap-h63xx.git ext4: Free ext4_prealloc_space using kmem_cache_free We should use kmem_cache_free to free memory allocated via kmem_cache_alloc Signed-off-by: Aneesh Kumar K.V Signed-off-by: Theodore Ts'o --- diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index b580714f0d8..154f8dec97e 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c @@ -2568,7 +2568,7 @@ static void ext4_mb_cleanup_pa(struct ext4_group_info *grp) pa = list_entry(cur, struct ext4_prealloc_space, pa_group_list); list_del(&pa->pa_group_list); count++; - kfree(pa); + kmem_cache_free(ext4_pspace_cachep, pa); } if (count) mb_debug("mballoc: %u PAs left\n", count);