Lines Matching refs:sit_i

122 #define SIT_ENTRY_OFFSET(sit_i, segno)					\  argument
123 ((segno) % (sit_i)->sents_per_block)
345 struct sit_info *sit_i = SIT_I(sbi); in get_seg_entry() local
346 return &sit_i->sentries[segno]; in get_seg_entry()
352 struct sit_info *sit_i = SIT_I(sbi); in get_sec_entry() local
353 return &sit_i->sec_entries[GET_SEC_FROM_SEG(sbi, segno)]; in get_sec_entry()
526 struct sit_info *sit_i = SIT_I(sbi); in get_sit_bitmap() local
529 if (memcmp(sit_i->sit_bitmap, sit_i->sit_bitmap_mir, in get_sit_bitmap()
530 sit_i->bitmap_size)) in get_sit_bitmap()
533 memcpy(dst_addr, sit_i->sit_bitmap, sit_i->bitmap_size); in get_sit_bitmap()
780 struct sit_info *sit_i = SIT_I(sbi); in current_sit_addr() local
782 block_t blk_addr = sit_i->sit_base_addr + offset; in current_sit_addr()
787 if (f2fs_test_bit(offset, sit_i->sit_bitmap) != in current_sit_addr()
788 f2fs_test_bit(offset, sit_i->sit_bitmap_mir)) in current_sit_addr()
793 if (f2fs_test_bit(offset, sit_i->sit_bitmap)) in current_sit_addr()
794 blk_addr += sit_i->sit_blocks; in current_sit_addr()
802 struct sit_info *sit_i = SIT_I(sbi); in next_sit_addr() local
803 block_addr -= sit_i->sit_base_addr; in next_sit_addr()
804 if (block_addr < sit_i->sit_blocks) in next_sit_addr()
805 block_addr += sit_i->sit_blocks; in next_sit_addr()
807 block_addr -= sit_i->sit_blocks; in next_sit_addr()
809 return block_addr + sit_i->sit_base_addr; in next_sit_addr()
812 static inline void set_to_next_sit(struct sit_info *sit_i, unsigned int start) in set_to_next_sit() argument
816 f2fs_change_bit(block_off, sit_i->sit_bitmap); in set_to_next_sit()
818 f2fs_change_bit(block_off, sit_i->sit_bitmap_mir); in set_to_next_sit()
825 struct sit_info *sit_i = SIT_I(sbi); in get_mtime() local
828 if (now >= sit_i->mounted_time) in get_mtime()
829 return sit_i->elapsed_time + now - sit_i->mounted_time; in get_mtime()
833 diff = sit_i->mounted_time - now; in get_mtime()
834 if (sit_i->elapsed_time >= diff) in get_mtime()
835 return sit_i->elapsed_time - diff; in get_mtime()
838 return sit_i->elapsed_time; in get_mtime()