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

Konstantin Khorenko khorenko at virtuozzo.com
Thu Jul 26 18:14:51 MSK 2018


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


More information about the Devel mailing list