Home
last modified time | relevance | path

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

/linux/fs/f2fs/
H A 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
418 static inline unsigned int find_next_inuse(struct free_segmap_info *free_i, in find_next_inuse() argument
422 spin_lock(&free_i->segmap_lock); in find_next_inuse()
423 ret = find_next_bit(free_i->free_segmap, max, segno); in find_next_inuse()
424 spin_unlock(&free_i->segmap_lock); in find_next_inuse()
430 struct free_segmap_info *free_i = FREE_I(sbi); in __set_free() local
436 spin_lock(&free_i->segmap_lock); in __set_free()
437 clear_bit(segno, free_i->free_segmap); in __set_free()
438 free_i->free_segments++; in __set_free()
[all …]
H A Dgc.h99 struct free_segmap_info *free_i = FREE_I(sbi); in free_segs_blk_count_zoned() local
102 spin_lock(&free_i->segmap_lock); in free_segs_blk_count_zoned()
104 if (!test_bit(j, free_i->free_segmap)) in free_segs_blk_count_zoned()
106 spin_unlock(&free_i->segmap_lock); in free_segs_blk_count_zoned()
H A Dsegment.c2667 struct free_segmap_info *free_i = FREE_I(sbi); in is_next_segment_free() local
2670 return !test_bit(segno, free_i->free_segmap); in is_next_segment_free()
2681 struct free_segmap_info *free_i = FREE_I(sbi); in get_new_segment() local
2690 spin_lock(&free_i->segmap_lock); in get_new_segment()
2698 segno = find_next_zero_bit(free_i->free_segmap, in get_new_segment()
2720 secno = find_next_zero_bit(free_i->free_secmap, MAIN_SECS(sbi), hint); in get_new_segment()
2727 secno = find_next_zero_bit(free_i->free_secmap, MAIN_SECS(sbi), hint); in get_new_segment()
2729 secno = find_first_zero_bit(free_i->free_secmap, in get_new_segment()
2740 secno = find_first_zero_bit(free_i->free_secmap, in get_new_segment()
2773 f2fs_bug_on(sbi, test_bit(segno, free_i->free_segmap)); in get_new_segment()
[all …]