• Home
  • Raw
  • Download

Lines Matching refs:free_i

2043 	struct free_segmap_info *free_i = FREE_I(sbi);  in is_next_segment_free()  local
2046 return !test_bit(segno, free_i->free_segmap); in is_next_segment_free()
2057 struct free_segmap_info *free_i = FREE_I(sbi); in get_new_segment() local
2067 spin_lock(&free_i->segmap_lock); in get_new_segment()
2070 segno = find_next_zero_bit(free_i->free_segmap, in get_new_segment()
2076 secno = find_next_zero_bit(free_i->free_secmap, MAIN_SECS(sbi), hint); in get_new_segment()
2079 secno = find_next_zero_bit(free_i->free_secmap, in get_new_segment()
2090 while (test_bit(left_start, free_i->free_secmap)) { in get_new_segment()
2095 left_start = find_next_zero_bit(free_i->free_secmap, in get_new_segment()
2135 f2fs_bug_on(sbi, test_bit(segno, free_i->free_segmap)); in get_new_segment()
2138 spin_unlock(&free_i->segmap_lock); in get_new_segment()
3531 struct free_segmap_info *free_i; in build_free_segmap() local
3535 free_i = f2fs_kzalloc(sbi, sizeof(struct free_segmap_info), GFP_KERNEL); in build_free_segmap()
3536 if (!free_i) in build_free_segmap()
3539 SM_I(sbi)->free_info = free_i; in build_free_segmap()
3542 free_i->free_segmap = f2fs_kvmalloc(sbi, bitmap_size, GFP_KERNEL); in build_free_segmap()
3543 if (!free_i->free_segmap) in build_free_segmap()
3547 free_i->free_secmap = f2fs_kvmalloc(sbi, sec_bitmap_size, GFP_KERNEL); in build_free_segmap()
3548 if (!free_i->free_secmap) in build_free_segmap()
3552 memset(free_i->free_segmap, 0xff, bitmap_size); in build_free_segmap()
3553 memset(free_i->free_secmap, 0xff, sec_bitmap_size); in build_free_segmap()
3556 free_i->start_segno = GET_SEGNO_FROM_SEG0(sbi, MAIN_BLKADDR(sbi)); in build_free_segmap()
3557 free_i->free_segments = 0; in build_free_segmap()
3558 free_i->free_sections = 0; in build_free_segmap()
3559 spin_lock_init(&free_i->segmap_lock); in build_free_segmap()
3705 struct free_segmap_info *free_i = FREE_I(sbi); in init_dirty_segmap() local
3711 segno = find_next_inuse(free_i, MAIN_SEGS(sbi), offset); in init_dirty_segmap()
3917 struct free_segmap_info *free_i = SM_I(sbi)->free_info; in destroy_free_segmap() local
3918 if (!free_i) in destroy_free_segmap()
3921 kvfree(free_i->free_segmap); in destroy_free_segmap()
3922 kvfree(free_i->free_secmap); in destroy_free_segmap()
3923 kfree(free_i); in destroy_free_segmap()