Lines Matching refs:sit_i
1320 struct sit_info *sit_i; in build_sit_info() local
1325 sit_i = malloc(sizeof(struct sit_info)); in build_sit_info()
1326 if (!sit_i) { in build_sit_info()
1331 SM_I(sbi)->sit_info = sit_i; in build_sit_info()
1333 sit_i->sentries = calloc(TOTAL_SEGS(sbi) * sizeof(struct seg_entry), 1); in build_sit_info()
1334 if (!sit_i->sentries) { in build_sit_info()
1340 sit_i->sentries[start].cur_valid_map in build_sit_info()
1342 if (!sit_i->sentries[start].cur_valid_map) { in build_sit_info()
1360 sit_i->sit_base_addr = get_sb(sit_blkaddr); in build_sit_info()
1361 sit_i->sit_blocks = sit_segs << sbi->log_blocks_per_seg; in build_sit_info()
1362 sit_i->written_valid_blocks = get_cp(valid_block_count); in build_sit_info()
1363 sit_i->sit_bitmap = dst_bitmap; in build_sit_info()
1364 sit_i->bitmap_size = bitmap_size; in build_sit_info()
1365 sit_i->dirty_sentries = 0; in build_sit_info()
1366 sit_i->sents_per_block = SIT_ENTRY_PER_BLOCK; in build_sit_info()
1367 sit_i->elapsed_time = get_cp(elapsed_time); in build_sit_info()
1372 free(sit_i->sentries[start].cur_valid_map); in build_sit_info()
1373 free(sit_i->sentries); in build_sit_info()
1376 free(sit_i); in build_sit_info()
1616 struct sit_info *sit_i = SIT_I(sbi); in get_current_sit_page() local
1617 unsigned int offset = SIT_BLOCK_OFFSET(sit_i, segno); in get_current_sit_page()
1618 block_t blk_addr = sit_i->sit_base_addr + offset; in get_current_sit_page()
1624 if (f2fs_test_bit(offset, sit_i->sit_bitmap)) in get_current_sit_page()
1625 blk_addr += sit_i->sit_blocks; in get_current_sit_page()
1634 struct sit_info *sit_i = SIT_I(sbi); in rewrite_current_sit_page() local
1635 unsigned int offset = SIT_BLOCK_OFFSET(sit_i, segno); in rewrite_current_sit_page()
1636 block_t blk_addr = sit_i->sit_base_addr + offset; in rewrite_current_sit_page()
1640 if (f2fs_test_bit(offset, sit_i->sit_bitmap)) in rewrite_current_sit_page()
1641 blk_addr += sit_i->sit_blocks; in rewrite_current_sit_page()
1690 struct sit_info *sit_i = SIT_I(sbi); in get_seg_entry() local
1691 return &sit_i->sentries[segno]; in get_seg_entry()
1892 struct sit_info *sit_i = SIT_I(sbi); in build_sit_entries() local
1907 se = &sit_i->sentries[segno]; in build_sit_entries()
1910 sit = sit_blk->entries[SIT_ENTRY_OFFSET(sit_i, segno)]; in build_sit_entries()
1919 se = &sit_i->sentries[segno]; in build_sit_entries()
2008 struct sit_info *sit_i = SIT_I(sbi); in rewrite_sit_area_bitmap() local
2029 sit = &sit_blk->entries[SIT_ENTRY_OFFSET(sit_i, segno)]; in rewrite_sit_area_bitmap()
2059 struct sit_info *sit_i = SIT_I(sbi); in flush_sit_journal_entries() local
2074 sit = &sit_blk->entries[SIT_ENTRY_OFFSET(sit_i, segno)]; in flush_sit_journal_entries()
2137 struct sit_info *sit_i = SIT_I(sbi); in flush_sit_entries() local
2154 sit = &sit_blk->entries[SIT_ENTRY_OFFSET(sit_i, segno)]; in flush_sit_entries()
2683 struct sit_info *sit_i = SIT_I(sbi); in f2fs_do_umount() local
2696 free(sit_i->sentries[i].cur_valid_map); in f2fs_do_umount()
2698 free(sit_i->sit_bitmap); in f2fs_do_umount()