Home
last modified time | relevance | path

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

/linux-6.6.21/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
429 static inline unsigned int find_next_inuse(struct free_segmap_info *free_i, in find_next_inuse() argument
433 spin_lock(&free_i->segmap_lock); in find_next_inuse()
434 ret = find_next_bit(free_i->free_segmap, max, segno); in find_next_inuse()
435 spin_unlock(&free_i->segmap_lock); in find_next_inuse()
441 struct free_segmap_info *free_i = FREE_I(sbi); in __set_free() local
447 spin_lock(&free_i->segmap_lock); in __set_free()
448 clear_bit(segno, free_i->free_segmap); in __set_free()
449 free_i->free_segments++; in __set_free()
[all …]
Dgc.h82 struct free_segmap_info *free_i = FREE_I(sbi); in free_segs_blk_count_zoned() local
85 spin_lock(&free_i->segmap_lock); in free_segs_blk_count_zoned()
87 if (!test_bit(j, free_i->free_segmap)) in free_segs_blk_count_zoned()
89 spin_unlock(&free_i->segmap_lock); in free_segs_blk_count_zoned()
Dsegment.c2628 struct free_segmap_info *free_i = FREE_I(sbi); in is_next_segment_free() local
2631 return !test_bit(segno, free_i->free_segmap); in is_next_segment_free()
2642 struct free_segmap_info *free_i = FREE_I(sbi); in get_new_segment() local
2652 spin_lock(&free_i->segmap_lock); in get_new_segment()
2655 segno = find_next_zero_bit(free_i->free_segmap, in get_new_segment()
2661 secno = find_next_zero_bit(free_i->free_secmap, MAIN_SECS(sbi), hint); in get_new_segment()
2664 secno = find_first_zero_bit(free_i->free_secmap, in get_new_segment()
2675 while (test_bit(left_start, free_i->free_secmap)) { in get_new_segment()
2680 left_start = find_first_zero_bit(free_i->free_secmap, in get_new_segment()
2720 f2fs_bug_on(sbi, test_bit(segno, free_i->free_segmap)); in get_new_segment()
[all …]