Home
last modified time | relevance | path

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

/fs/f2fs/
Dsegment.h125 #define SIT_ENTRY_OFFSET(sit_i, segno) \ argument
126 ((segno) % (sit_i)->sents_per_block)
348 struct sit_info *sit_i = SIT_I(sbi); in get_seg_entry() local
349 return &sit_i->sentries[segno]; in get_seg_entry()
355 struct sit_info *sit_i = SIT_I(sbi); in get_sec_entry() local
356 return &sit_i->sec_entries[GET_SEC_FROM_SEG(sbi, segno)]; in get_sec_entry()
529 struct sit_info *sit_i = SIT_I(sbi); in get_sit_bitmap() local
532 if (memcmp(sit_i->sit_bitmap, sit_i->sit_bitmap_mir, in get_sit_bitmap()
533 sit_i->bitmap_size)) in get_sit_bitmap()
536 memcpy(dst_addr, sit_i->sit_bitmap, sit_i->bitmap_size); in get_sit_bitmap()
[all …]
Dsegment.c2129 struct sit_info *sit_i = SIT_I(sbi); in __mark_sit_entry_dirty() local
2131 if (!__test_and_set_bit(segno, sit_i->dirty_sentries_bitmap)) { in __mark_sit_entry_dirty()
2132 sit_i->dirty_sentries++; in __mark_sit_entry_dirty()
2285 struct sit_info *sit_i = SIT_I(sbi); in f2fs_invalidate_blocks() local
2295 down_write(&sit_i->sentry_lock); in f2fs_invalidate_blocks()
2303 up_write(&sit_i->sentry_lock); in f2fs_invalidate_blocks()
2308 struct sit_info *sit_i = SIT_I(sbi); in f2fs_is_checkpointed_data() local
2316 down_read(&sit_i->sentry_lock); in f2fs_is_checkpointed_data()
2325 up_read(&sit_i->sentry_lock); in f2fs_is_checkpointed_data()
3334 struct sit_info *sit_i = SIT_I(sbi); in f2fs_allocate_data_block() local
[all …]
Dgc.c322 struct sit_info *sit_i = SIT_I(sbi); in get_cb_cost() local
342 if (mtime < sit_i->min_mtime) in get_cb_cost()
343 sit_i->min_mtime = mtime; in get_cb_cost()
344 if (mtime > sit_i->max_mtime) in get_cb_cost()
345 sit_i->max_mtime = mtime; in get_cb_cost()
346 if (sit_i->max_mtime != sit_i->min_mtime) in get_cb_cost()
347 age = 100 - div64_u64(100 * (mtime - sit_i->min_mtime), in get_cb_cost()
348 sit_i->max_mtime - sit_i->min_mtime); in get_cb_cost()
420 struct sit_info *sit_i = SIT_I(sbi); in add_victim_entry() local
437 if (mtime < sit_i->min_mtime) in add_victim_entry()
[all …]