Searched refs:sit_i (Results 1 – 3 of 3) sorted by relevance
122 #define SIT_ENTRY_OFFSET(sit_i, segno) \ argument123 ((segno) % (sit_i)->sents_per_block)345 struct sit_info *sit_i = SIT_I(sbi); in get_seg_entry() local346 return &sit_i->sentries[segno]; in get_seg_entry()352 struct sit_info *sit_i = SIT_I(sbi); in get_sec_entry() local353 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() local529 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()[all …]
2110 struct sit_info *sit_i = SIT_I(sbi); in __mark_sit_entry_dirty() local2112 if (!__test_and_set_bit(segno, sit_i->dirty_sentries_bitmap)) { in __mark_sit_entry_dirty()2113 sit_i->dirty_sentries++; in __mark_sit_entry_dirty()2266 struct sit_info *sit_i = SIT_I(sbi); in f2fs_invalidate_blocks() local2276 down_write(&sit_i->sentry_lock); in f2fs_invalidate_blocks()2284 up_write(&sit_i->sentry_lock); in f2fs_invalidate_blocks()2289 struct sit_info *sit_i = SIT_I(sbi); in f2fs_is_checkpointed_data() local2297 down_read(&sit_i->sentry_lock); in f2fs_is_checkpointed_data()2306 up_read(&sit_i->sentry_lock); in f2fs_is_checkpointed_data()3220 struct sit_info *sit_i = SIT_I(sbi); in f2fs_allocate_data_block() local[all …]
333 struct sit_info *sit_i = SIT_I(sbi); in get_cb_cost() local353 if (mtime < sit_i->min_mtime) in get_cb_cost()354 sit_i->min_mtime = mtime; in get_cb_cost()355 if (mtime > sit_i->max_mtime) in get_cb_cost()356 sit_i->max_mtime = mtime; in get_cb_cost()357 if (sit_i->max_mtime != sit_i->min_mtime) in get_cb_cost()358 age = 100 - div64_u64(100 * (mtime - sit_i->min_mtime), in get_cb_cost()359 sit_i->max_mtime - sit_i->min_mtime); in get_cb_cost()431 struct sit_info *sit_i = SIT_I(sbi); in add_victim_entry() local448 if (mtime < sit_i->min_mtime) in add_victim_entry()[all …]