Home
last modified time | relevance | path

Searched refs:sit_i (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/fs/f2fs/
Dsegment.h122 #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()
[all …]
Dsegment.c2110 struct sit_info *sit_i = SIT_I(sbi); in __mark_sit_entry_dirty() local
2112 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() local
2276 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() local
2297 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 …]
Dgc.c333 struct sit_info *sit_i = SIT_I(sbi); in get_cb_cost() local
353 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() local
448 if (mtime < sit_i->min_mtime) in add_victim_entry()
[all …]