Searched refs:sit_i (Results 1 – 3 of 3) sorted by relevance
125 #define SIT_ENTRY_OFFSET(sit_i, segno) \ argument126 ((segno) % (sit_i)->sents_per_block)335 struct sit_info *sit_i = SIT_I(sbi); in get_seg_entry() local336 return &sit_i->sentries[segno]; in get_seg_entry()342 struct sit_info *sit_i = SIT_I(sbi); in get_sec_entry() local343 return &sit_i->sec_entries[GET_SEC_FROM_SEG(sbi, segno)]; in get_sec_entry()516 struct sit_info *sit_i = SIT_I(sbi); in get_sit_bitmap() local519 if (memcmp(sit_i->sit_bitmap, sit_i->sit_bitmap_mir, in get_sit_bitmap()520 sit_i->bitmap_size)) in get_sit_bitmap()523 memcpy(dst_addr, sit_i->sit_bitmap, sit_i->bitmap_size); in get_sit_bitmap()[all …]
2239 struct sit_info *sit_i = SIT_I(sbi); in __mark_sit_entry_dirty() local2241 if (!__test_and_set_bit(segno, sit_i->dirty_sentries_bitmap)) { in __mark_sit_entry_dirty()2242 sit_i->dirty_sentries++; in __mark_sit_entry_dirty()2395 struct sit_info *sit_i = SIT_I(sbi); in f2fs_invalidate_blocks() local2405 down_write(&sit_i->sentry_lock); in f2fs_invalidate_blocks()2413 up_write(&sit_i->sentry_lock); in f2fs_invalidate_blocks()2418 struct sit_info *sit_i = SIT_I(sbi); in f2fs_is_checkpointed_data() local2426 down_read(&sit_i->sentry_lock); in f2fs_is_checkpointed_data()2435 up_read(&sit_i->sentry_lock); in f2fs_is_checkpointed_data()3319 struct sit_info *sit_i = SIT_I(sbi); in f2fs_allocate_data_block() local[all …]
334 struct sit_info *sit_i = SIT_I(sbi); in get_cb_cost() local354 if (mtime < sit_i->min_mtime) in get_cb_cost()355 sit_i->min_mtime = mtime; in get_cb_cost()356 if (mtime > sit_i->max_mtime) in get_cb_cost()357 sit_i->max_mtime = mtime; in get_cb_cost()358 if (sit_i->max_mtime != sit_i->min_mtime) in get_cb_cost()359 age = 100 - div64_u64(100 * (mtime - sit_i->min_mtime), in get_cb_cost()360 sit_i->max_mtime - sit_i->min_mtime); in get_cb_cost()487 struct sit_info *sit_i = SIT_I(sbi); in add_victim_entry() local504 if (mtime < sit_i->min_mtime) in add_victim_entry()[all …]