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

Submitted by Konstantin Khorenko on Dec. 26, 2019, 11:41 a.m.

Details

Message ID 201912261141.xBQBfRcN005407@finist-ce7.sw.ru
State New
Headers show

Patch hide | download patch | download mbox

diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index f4af9e8533022..c667b6fe2fb7d 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 | __GFP_NOWARN);
-	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 | __GFP_NOWARN);
-	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)
 {