diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2008-10-13 20:14:14 +0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2008-10-13 20:14:14 +0400 |
commit | 688f05a01983711a4e715b1d6e15a89a89c96a66 (patch) | |
tree | a0b46e7bbbdffd89ca27da331eb2b62d0106f300 /fs/ext4 | |
parent | 473dc8eddb049055ef823e000ad968ebd56cdaca (diff) | |
download | linux-688f05a01983711a4e715b1d6e15a89a89c96a66.tar.xz |
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 <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/mballoc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index b580714f0d85..154f8dec97ea 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); |