Home
last modified time | relevance | path

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

/Linux-v4.19/fs/f2fs/
Dsegment.h108 #define SIT_ENTRY_OFFSET(sit_i, segno) \ argument
109 ((segno) % (sit_i)->sents_per_block)
321 struct sit_info *sit_i = SIT_I(sbi); in get_seg_entry() local
322 return &sit_i->sentries[segno]; in get_seg_entry()
328 struct sit_info *sit_i = SIT_I(sbi); in get_sec_entry() local
329 return &sit_i->sec_entries[GET_SEC_FROM_SEG(sbi, segno)]; in get_sec_entry()
482 struct sit_info *sit_i = SIT_I(sbi); in get_sit_bitmap() local
485 if (memcmp(sit_i->sit_bitmap, sit_i->sit_bitmap_mir, in get_sit_bitmap()
486 sit_i->bitmap_size)) in get_sit_bitmap()
489 memcpy(dst_addr, sit_i->sit_bitmap, sit_i->bitmap_size); in get_sit_bitmap()
[all …]
Dsegment.c1964 struct sit_info *sit_i = SIT_I(sbi); in __mark_sit_entry_dirty() local
1966 if (!__test_and_set_bit(segno, sit_i->dirty_sentries_bitmap)) { in __mark_sit_entry_dirty()
1967 sit_i->dirty_sentries++; in __mark_sit_entry_dirty()
2076 struct sit_info *sit_i = SIT_I(sbi); in f2fs_invalidate_blocks() local
2085 down_write(&sit_i->sentry_lock); in f2fs_invalidate_blocks()
2092 up_write(&sit_i->sentry_lock); in f2fs_invalidate_blocks()
2097 struct sit_info *sit_i = SIT_I(sbi); in f2fs_is_checkpointed_data() local
2105 down_read(&sit_i->sentry_lock); in f2fs_is_checkpointed_data()
2114 up_read(&sit_i->sentry_lock); in f2fs_is_checkpointed_data()
2885 struct sit_info *sit_i = SIT_I(sbi); in f2fs_allocate_data_block() local
[all …]
Dgc.c239 struct sit_info *sit_i = SIT_I(sbi); in get_cb_cost() local
258 if (mtime < sit_i->min_mtime) in get_cb_cost()
259 sit_i->min_mtime = mtime; in get_cb_cost()
260 if (mtime > sit_i->max_mtime) in get_cb_cost()
261 sit_i->max_mtime = mtime; in get_cb_cost()
262 if (sit_i->max_mtime != sit_i->min_mtime) in get_cb_cost()
263 age = 100 - div64_u64(100 * (mtime - sit_i->min_mtime), in get_cb_cost()
264 sit_i->max_mtime - sit_i->min_mtime); in get_cb_cost()
451 struct sit_info *sit_i = SIT_I(sbi); in check_valid_map() local
455 down_read(&sit_i->sentry_lock); in check_valid_map()
[all …]