Home
last modified time | relevance | path

Searched refs:GET_SEC_FROM_SEG (Results 1 – 6 of 6) sorted by relevance

/linux/fs/f2fs/
H A Dsegment.h85 #define GET_SEC_FROM_SEG(sbi, segno) \ macro
92 GET_ZONE_FROM_SEC(sbi, GET_SEC_FROM_SEG(sbi, segno))
313 if (secno == GET_SEC_FROM_SEG(sbi, CURSEG_I(sbi, i)->segno)) in is_cursec()
330 return &sit_i->sec_entries[GET_SEC_FROM_SEG(sbi, segno)]; in get_sec_entry()
358 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno); in set_ckpt_valid_blocks()
375 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno); in sanity_check_valid_blocks()
462 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno); in __set_free()
483 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno); in __set_inuse()
495 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno); in __set_test_and_free()
522 if (GET_SEC_FROM_SEG(sbi, sbi->next_victim_seg[BG_GC]) == secno) in __set_test_and_free()
[all …]
H A Dgc.c717 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno); in f2fs_pin_section()
814 if (sec_usage_check(sbi, GET_SEC_FROM_SEG(sbi, *result))) { in f2fs_get_victim()
819 clear_bit(GET_SEC_FROM_SEG(sbi, *result), dirty_i->victim_secmap); in f2fs_get_victim()
884 secno = GET_SEC_FROM_SEG(sbi, segno); in f2fs_get_victim()
959 secno = GET_SEC_FROM_SEG(sbi, p.min_segno); in f2fs_get_victim()
1860 if (is_cursec(sbi, GET_SEC_FROM_SEG(sbi, segno))) { in do_garbage_collect()
2180 if (is_cursec(sbi, GET_SEC_FROM_SEG(sbi, segno))) in f2fs_gc_range()
2243 end_secno = GET_SEC_FROM_SEG(sbi, end); in free_segment_range()
H A Dsegment.c841 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno); in __locate_dirty_segment()
874 clear_bit(GET_SEC_FROM_SEG(sbi, segno), in __remove_dirty_segment()
881 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno); in __remove_dirty_segment()
2278 secno = GET_SEC_FROM_SEG(sbi, start); in f2fs_clear_prefree_segments()
2876 unsigned int hint = GET_SEC_FROM_SEG(sbi, *newseg); in get_new_segment()
2916 hint = GET_SEC_FROM_SEG(sbi, segno); in get_new_segment()
2954 hint = GET_SEC_FROM_SEG(sbi, sbi->first_seq_zone_segno); in get_new_segment()
2969 hint = GET_SEC_FROM_SEG(sbi, end_segno) + 1; in get_new_segment()
3056 unsigned int hint = GET_SEC_FROM_SEG(sbi, curseg->segno); in __get_next_segno()
3058 if (GET_SEC_FROM_SEG(sbi, curseg->segno + 1) != hint) in __get_next_segno()
[all …]
H A Ddebug.c112 if (is_cursec(sbi, GET_SEC_FROM_SEG(sbi, j))) in update_multidevice_stats()
118 else if (!test_bit(GET_SEC_FROM_SEG(sbi, j), in update_multidevice_stats()
256 si->cursec[i] = GET_SEC_FROM_SEG(sbi, curseg->segno); in update_general_status()
H A Dsysfs.c928 if (t > GET_SEC_FROM_SEG(sbi, overprovision_segments(sbi))) in __sbi_store()
H A Dsuper.c562 GET_SEC_FROM_SEG(sbi, sbi->first_seq_zone_segno)); in adjust_pinned_area_boundary()
5328 GET_SEC_FROM_SEG(sbi, overprovision_segments(sbi)); in f2fs_fill_super()