Searched refs:sit_i (Results 1 – 5 of 5) sorted by relevance
898 struct sit_info *sit_i; in build_sit_info() local903 sit_i = malloc(sizeof(struct sit_info)); in build_sit_info()904 if (!sit_i) in build_sit_info()907 SM_I(sbi)->sit_info = sit_i; in build_sit_info()909 sit_i->sentries = calloc(TOTAL_SEGS(sbi) * sizeof(struct seg_entry), 1); in build_sit_info()910 if (!sit_i->sentries) in build_sit_info()914 sit_i->sentries[start].cur_valid_map in build_sit_info()916 sit_i->sentries[start].ckpt_valid_map in build_sit_info()918 if (!sit_i->sentries[start].cur_valid_map in build_sit_info()919 || !sit_i->sentries[start].ckpt_valid_map) in build_sit_info()[all …]
353 #define SIT_ENTRY_OFFSET(sit_i, segno) \ argument354 ((segno) % sit_i->sents_per_block)355 #define SIT_BLOCK_OFFSET(sit_i, segno) \ argument
122 struct sit_info *sit_i = SIT_I(sbi); in sit_dump() local141 offset = SIT_BLOCK_OFFSET(sit_i, segno); in sit_dump()146 f2fs_test_bit(offset, sit_i->sit_bitmap) ? 2 : 1); in sit_dump()
359 struct sit_info *sit_i = SIT_I(sbi); in migrate_sit() local387 ofs = SIT_BLOCK_OFFSET(sit_i, segno - offset); in migrate_sit()399 sit = &sit_blk->entries[SIT_ENTRY_OFFSET(sit_i, segno - offset)]; in migrate_sit()
1716 struct sit_info *sit_i = SIT_I(sbi); in flush_curseg_sit_entries() local1730 sit = &sit_blk->entries[SIT_ENTRY_OFFSET(sit_i, curseg->segno)]; in flush_curseg_sit_entries()