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

Konstantin Khorenko khorenko at virtuozzo.com
Thu Dec 26 14:41:28 MSK 2019


The commit is pushed to "branch-rh7-3.10.0-1062.7.1.vz7.130.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-1062.7.1.vz7.130.5
------>
commit aaeefcf3bf669b93f125c1365ca0e9754791bd44
Author: Jan Dakinevich <jan.dakinevich at 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 at virtuozzo.com>
---
 fs/ext4/super.c | 20 --------------------
 1 file changed, 20 deletions(-)

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)
 {



More information about the Devel mailing list