Home
last modified time | relevance | path

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

/Linux-v6.6/fs/f2fs/
Dsegment.h125 #define SIT_ENTRY_OFFSET(sit_i, segno) \ argument
126 ((segno) % (sit_i)->sents_per_block)
335 struct sit_info *sit_i = SIT_I(sbi); in get_seg_entry() local
336 return &sit_i->sentries[segno]; in get_seg_entry()
342 struct sit_info *sit_i = SIT_I(sbi); in get_sec_entry() local
343 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() local
519 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 …]
Dsegment.c2336 struct sit_info *sit_i = SIT_I(sbi); in __mark_sit_entry_dirty() local
2338 if (!__test_and_set_bit(segno, sit_i->dirty_sentries_bitmap)) { in __mark_sit_entry_dirty()
2339 sit_i->dirty_sentries++; in __mark_sit_entry_dirty()
2492 struct sit_info *sit_i = SIT_I(sbi); in f2fs_invalidate_blocks() local
2502 down_write(&sit_i->sentry_lock); in f2fs_invalidate_blocks()
2510 up_write(&sit_i->sentry_lock); in f2fs_invalidate_blocks()
2515 struct sit_info *sit_i = SIT_I(sbi); in f2fs_is_checkpointed_data() local
2523 down_read(&sit_i->sentry_lock); in f2fs_is_checkpointed_data()
2532 up_read(&sit_i->sentry_lock); in f2fs_is_checkpointed_data()
3417 struct sit_info *sit_i = SIT_I(sbi); in f2fs_allocate_data_block() local
[all …]
Dgc.c334 struct sit_info *sit_i = SIT_I(sbi); in get_cb_cost() local
354 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() local
504 if (mtime < sit_i->min_mtime) in add_victim_entry()
[all …]