[RHEL7,COMMIT] ext4: kill ext4_kv[mz]alloc()

Submitted by Konstantin Khorenko on July 26, 2018, 3:14 p.m.

Details

Message ID 201807261514.w6QFEp9a022300@finist_ce7.work
State New
Series "ext4: kill ext4_kv[mz]alloc()"
Headers show

Commit Message

Konstantin Khorenko July 26, 2018, 3:14 p.m.
The commit is pushed to "branch-rh7-3.10.0-862.9.1.vz7.63.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-862.9.1.vz7.63.3
------>
commit af441965664d0d383abf3b4b7daf2f6fd4708e7f
Author: Jan Dakinevich <jan.dakinevich@virtuozzo.com>
Date:   Thu Jul 26 18:14:51 2018 +0300

    ext4: kill ext4_kv[mz]alloc()
    
    https://jira.sw.ru/browse/PSBM-83044
    
    Signed-off-by: Jan Dakinevich <jan.dakinevich@virtuozzo.com>
---
 fs/ext4/super.c | 20 --------------------
 1 file changed, 20 deletions(-)

Patch hide | download patch | download mbox

diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 8c90717d4a26..94c904f72af6 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -158,26 +158,6 @@  void ext4_superblock_csum_set(struct super_block *sb)
 	es->s_checksum = ext4_superblock_csum(sb, es);
 }
 
-void *ext4_kvmalloc(size_t size, gfp_t flags)
-{
-	void *ret;
-
-	ret = kmalloc(size, flags);
-	if (!ret)
-		ret = __vmalloc(size, flags, PAGE_KERNEL);
-	return ret;
-}
-
-void *ext4_kvzalloc(size_t size, gfp_t flags)
-{
-	void *ret;
-
-	ret = kzalloc(size, flags);
-	if (!ret)
-		ret = __vmalloc(size, flags | __GFP_ZERO, PAGE_KERNEL);
-	return ret;
-}
-
 ext4_fsblk_t ext4_block_bitmap(struct super_block *sb,
 			       struct ext4_group_desc *bg)
 {