Home
last modified time | relevance | path

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

/linux-6.1.9/fs/f2fs/
Dsegment.h22 #define GET_L2R_SEGNO(free_i, segno) ((segno) - (free_i)->start_segno) argument
23 #define GET_R2L_SEGNO(free_i, segno) ((segno) + (free_i)->start_segno) argument
439 static inline unsigned int find_next_inuse(struct free_segmap_info *free_i, in find_next_inuse() argument
443 spin_lock(&free_i->segmap_lock); in find_next_inuse()
444 ret = find_next_bit(free_i->free_segmap, max, segno); in find_next_inuse()
445 spin_unlock(&free_i->segmap_lock); in find_next_inuse()
451 struct free_segmap_info *free_i = FREE_I(sbi); in __set_free() local
457 spin_lock(&free_i->segmap_lock); in __set_free()
458 clear_bit(segno, free_i->free_segmap); in __set_free()
459 free_i->free_segments++; in __set_free()
[all …]
Dgc.h90 struct free_segmap_info *free_i = FREE_I(sbi); in free_segs_blk_count_zoned() local
93 spin_lock(&free_i->segmap_lock); in free_segs_blk_count_zoned()
95 if (!test_bit(j, free_i->free_segmap)) in free_segs_blk_count_zoned()
97 spin_unlock(&free_i->segmap_lock); in free_segs_blk_count_zoned()
Dsegment.c2410 struct free_segmap_info *free_i = FREE_I(sbi); in is_next_segment_free() local
2413 return !test_bit(segno, free_i->free_segmap); in is_next_segment_free()
2424 struct free_segmap_info *free_i = FREE_I(sbi); in get_new_segment() local
2434 spin_lock(&free_i->segmap_lock); in get_new_segment()
2437 segno = find_next_zero_bit(free_i->free_segmap, in get_new_segment()
2443 secno = find_next_zero_bit(free_i->free_secmap, MAIN_SECS(sbi), hint); in get_new_segment()
2446 secno = find_first_zero_bit(free_i->free_secmap, in get_new_segment()
2457 while (test_bit(left_start, free_i->free_secmap)) { in get_new_segment()
2462 left_start = find_first_zero_bit(free_i->free_secmap, in get_new_segment()
2502 f2fs_bug_on(sbi, test_bit(segno, free_i->free_segmap)); in get_new_segment()
[all …]