|
@@ -2501,13 +2501,13 @@ static int build_sit_info(struct f2fs_sb_info *sbi)
|
|
|
|
|
|
SM_I(sbi)->sit_info = sit_i;
|
|
|
|
|
|
- sit_i->sentries = f2fs_kvzalloc(MAIN_SEGS(sbi) *
|
|
|
+ sit_i->sentries = kvzalloc(MAIN_SEGS(sbi) *
|
|
|
sizeof(struct seg_entry), GFP_KERNEL);
|
|
|
if (!sit_i->sentries)
|
|
|
return -ENOMEM;
|
|
|
|
|
|
bitmap_size = f2fs_bitmap_size(MAIN_SEGS(sbi));
|
|
|
- sit_i->dirty_sentries_bitmap = f2fs_kvzalloc(bitmap_size, GFP_KERNEL);
|
|
|
+ sit_i->dirty_sentries_bitmap = kvzalloc(bitmap_size, GFP_KERNEL);
|
|
|
if (!sit_i->dirty_sentries_bitmap)
|
|
|
return -ENOMEM;
|
|
|
|
|
@@ -2540,7 +2540,7 @@ static int build_sit_info(struct f2fs_sb_info *sbi)
|
|
|
return -ENOMEM;
|
|
|
|
|
|
if (sbi->segs_per_sec > 1) {
|
|
|
- sit_i->sec_entries = f2fs_kvzalloc(MAIN_SECS(sbi) *
|
|
|
+ sit_i->sec_entries = kvzalloc(MAIN_SECS(sbi) *
|
|
|
sizeof(struct sec_entry), GFP_KERNEL);
|
|
|
if (!sit_i->sec_entries)
|
|
|
return -ENOMEM;
|
|
@@ -2591,12 +2591,12 @@ static int build_free_segmap(struct f2fs_sb_info *sbi)
|
|
|
SM_I(sbi)->free_info = free_i;
|
|
|
|
|
|
bitmap_size = f2fs_bitmap_size(MAIN_SEGS(sbi));
|
|
|
- free_i->free_segmap = f2fs_kvmalloc(bitmap_size, GFP_KERNEL);
|
|
|
+ free_i->free_segmap = kvmalloc(bitmap_size, GFP_KERNEL);
|
|
|
if (!free_i->free_segmap)
|
|
|
return -ENOMEM;
|
|
|
|
|
|
sec_bitmap_size = f2fs_bitmap_size(MAIN_SECS(sbi));
|
|
|
- free_i->free_secmap = f2fs_kvmalloc(sec_bitmap_size, GFP_KERNEL);
|
|
|
+ free_i->free_secmap = kvmalloc(sec_bitmap_size, GFP_KERNEL);
|
|
|
if (!free_i->free_secmap)
|
|
|
return -ENOMEM;
|
|
|
|
|
@@ -2764,7 +2764,7 @@ static int init_victim_secmap(struct f2fs_sb_info *sbi)
|
|
|
struct dirty_seglist_info *dirty_i = DIRTY_I(sbi);
|
|
|
unsigned int bitmap_size = f2fs_bitmap_size(MAIN_SECS(sbi));
|
|
|
|
|
|
- dirty_i->victim_secmap = f2fs_kvzalloc(bitmap_size, GFP_KERNEL);
|
|
|
+ dirty_i->victim_secmap = kvzalloc(bitmap_size, GFP_KERNEL);
|
|
|
if (!dirty_i->victim_secmap)
|
|
|
return -ENOMEM;
|
|
|
return 0;
|
|
@@ -2786,7 +2786,7 @@ static int build_dirty_segmap(struct f2fs_sb_info *sbi)
|
|
|
bitmap_size = f2fs_bitmap_size(MAIN_SEGS(sbi));
|
|
|
|
|
|
for (i = 0; i < NR_DIRTY_TYPE; i++) {
|
|
|
- dirty_i->dirty_segmap[i] = f2fs_kvzalloc(bitmap_size, GFP_KERNEL);
|
|
|
+ dirty_i->dirty_segmap[i] = kvzalloc(bitmap_size, GFP_KERNEL);
|
|
|
if (!dirty_i->dirty_segmap[i])
|
|
|
return -ENOMEM;
|
|
|
}
|