Home | History | Annotate | Download | only in fsck

Lines Matching refs:SIT_I

449 	struct sit_info *sit_i;
454 sit_i = malloc(sizeof(struct sit_info));
455 if (!sit_i)
458 SM_I(sbi)->sit_info = sit_i;
460 sit_i->sentries = calloc(TOTAL_SEGS(sbi) * sizeof(struct seg_entry), 1);
463 sit_i->sentries[start].cur_valid_map
465 sit_i->sentries[start].ckpt_valid_map
467 if (!sit_i->sentries[start].cur_valid_map
468 || !sit_i->sentries[start].ckpt_valid_map)
479 sit_i->sit_base_addr = le32_to_cpu(raw_sb->sit_blkaddr);
480 sit_i->sit_blocks = sit_segs << sbi->log_blocks_per_seg;
481 sit_i->written_valid_blocks = le64_to_cpu(ckpt->valid_block_count);
482 sit_i->sit_bitmap = dst_bitmap;
483 sit_i->bitmap_size = bitmap_size;
484 sit_i->dirty_sentries = 0;
485 sit_i->sents_per_block = SIT_ENTRY_PER_BLOCK;
486 sit_i->elapsed_time = le64_to_cpu(ckpt->elapsed_time);
693 struct sit_info *sit_i = SIT_I(sbi);
694 unsigned int offset = SIT_BLOCK_OFFSET(sit_i, segno);
695 block_t blk_addr = sit_i->sit_base_addr + offset;
701 if (f2fs_test_bit(offset, sit_i->sit_bitmap))
702 blk_addr += sit_i->sit_blocks;
745 struct sit_info *sit_i = SIT_I(sbi);
746 return &sit_i->sentries[segno];
857 struct sit_info *sit_i = SIT_I(sbi);
863 struct seg_entry *se = &sit_i->sentries[segno];
875 sit = sit_blk->entries[SIT_ENTRY_OFFSET(sit_i, segno)];
1117 struct sit_info *sit_i = SIT_I(sbi);
1128 free(sit_i->sentries[i].cur_valid_map);
1129 free(sit_i->sentries[i].ckpt_valid_map);
1131 free(sit_i->sit_bitmap);