aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/mballoc.c
diff options
context:
space:
mode:
authorAl Viro <viro@ZenIV.linux.org.uk>2014-11-20 12:19:11 -0500
committerTheodore Ts'o <tytso@mit.edu>2014-11-20 12:19:11 -0500
commitb93b41d4c7338dda9304eaac9d3b40da43198806 (patch)
treedc6800d429d0dbdee0a45a24e7fe79a06799eb50 /fs/ext4/mballoc.c
parent88c6b61ff1cfb4013a3523227d91ad11b2892388 (diff)
ext4: kill ext4_kvfree()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/mballoc.c')
-rw-r--r--fs/ext4/mballoc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index dbfe15c2533c..004d0ff8325f 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -2358,7 +2358,7 @@ int ext4_mb_alloc_groupinfo(struct super_block *sb, ext4_group_t ngroups)
2358 if (sbi->s_group_info) { 2358 if (sbi->s_group_info) {
2359 memcpy(new_groupinfo, sbi->s_group_info, 2359 memcpy(new_groupinfo, sbi->s_group_info,
2360 sbi->s_group_info_size * sizeof(*sbi->s_group_info)); 2360 sbi->s_group_info_size * sizeof(*sbi->s_group_info));
2361 ext4_kvfree(sbi->s_group_info); 2361 kvfree(sbi->s_group_info);
2362 } 2362 }
2363 sbi->s_group_info = new_groupinfo; 2363 sbi->s_group_info = new_groupinfo;
2364 sbi->s_group_info_size = size / sizeof(*sbi->s_group_info); 2364 sbi->s_group_info_size = size / sizeof(*sbi->s_group_info);
@@ -2495,7 +2495,7 @@ err_freebuddy:
2495 kfree(sbi->s_group_info[i]); 2495 kfree(sbi->s_group_info[i]);
2496 iput(sbi->s_buddy_cache); 2496 iput(sbi->s_buddy_cache);
2497err_freesgi: 2497err_freesgi:
2498 ext4_kvfree(sbi->s_group_info); 2498 kvfree(sbi->s_group_info);
2499 return -ENOMEM; 2499 return -ENOMEM;
2500} 2500}
2501 2501
@@ -2708,7 +2708,7 @@ int ext4_mb_release(struct super_block *sb)
2708 EXT4_DESC_PER_BLOCK_BITS(sb); 2708 EXT4_DESC_PER_BLOCK_BITS(sb);
2709 for (i = 0; i < num_meta_group_infos; i++) 2709 for (i = 0; i < num_meta_group_infos; i++)
2710 kfree(sbi->s_group_info[i]); 2710 kfree(sbi->s_group_info[i]);
2711 ext4_kvfree(sbi->s_group_info); 2711 kvfree(sbi->s_group_info);
2712 } 2712 }
2713 kfree(sbi->s_mb_offsets); 2713 kfree(sbi->s_mb_offsets);
2714 kfree(sbi->s_mb_maxs); 2714 kfree(sbi->s_mb_maxs);