projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
473dc8e
)
ext4: Free ext4_prealloc_space using kmem_cache_free
author
Aneesh Kumar K.V
<aneesh.kumar@linux.vnet.ibm.com>
Mon, 13 Oct 2008 16:14:14 +0000
(12:14 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Mon, 13 Oct 2008 16:14:14 +0000
(12:14 -0400)
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>
fs/ext4/mballoc.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ext4/mballoc.c
b/fs/ext4/mballoc.c
index b580714f0d859c107e94a3f6c61286141fb0cdab..154f8dec97eab454263e16be0ec23ce2a6cb7837 100644
(file)
--- 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++;
- k
free(
pa);
+ k
mem_cache_free(ext4_pspace_cachep,
pa);
}
if (count)
mb_debug("mballoc: %u PAs left\n", count);