Lines Matching refs:array
3664 struct curseg_info *array; in build_curseg() local
3667 array = f2fs_kzalloc(sbi, sizeof(*array) * NR_CURSEG_TYPE, GFP_KERNEL); in build_curseg()
3668 if (!array) in build_curseg()
3671 SM_I(sbi)->curseg_array = array; in build_curseg()
3674 mutex_init(&array[i].curseg_mutex); in build_curseg()
3675 array[i].sum_blk = f2fs_kzalloc(sbi, PAGE_SIZE, GFP_KERNEL); in build_curseg()
3676 if (!array[i].sum_blk) in build_curseg()
3678 init_rwsem(&array[i].journal_rwsem); in build_curseg()
3679 array[i].journal = f2fs_kzalloc(sbi, in build_curseg()
3681 if (!array[i].journal) in build_curseg()
3683 array[i].segno = NULL_SEGNO; in build_curseg()
3684 array[i].next_blkoff = 0; in build_curseg()
4038 struct curseg_info *array = SM_I(sbi)->curseg_array; in destroy_curseg() local
4041 if (!array) in destroy_curseg()
4045 kfree(array[i].sum_blk); in destroy_curseg()
4046 kfree(array[i].journal); in destroy_curseg()
4048 kfree(array); in destroy_curseg()