Searched refs:free_i (Results 1 – 2 of 2) sorted by relevance
/fs/f2fs/ |
D | segment.h | 24 #define GET_L2R_SEGNO(free_i, segno) ((segno) - (free_i)->start_segno) argument 25 #define GET_R2L_SEGNO(free_i, segno) ((segno) + (free_i)->start_segno) argument 394 static inline unsigned int find_next_inuse(struct free_segmap_info *free_i, in find_next_inuse() argument 398 spin_lock(&free_i->segmap_lock); in find_next_inuse() 399 ret = find_next_bit(free_i->free_segmap, max, segno); in find_next_inuse() 400 spin_unlock(&free_i->segmap_lock); in find_next_inuse() 406 struct free_segmap_info *free_i = FREE_I(sbi); in __set_free() local 411 spin_lock(&free_i->segmap_lock); in __set_free() 412 clear_bit(segno, free_i->free_segmap); in __set_free() 413 free_i->free_segments++; in __set_free() [all …]
|
D | segment.c | 2043 struct free_segmap_info *free_i = FREE_I(sbi); in is_next_segment_free() local 2046 return !test_bit(segno, free_i->free_segmap); in is_next_segment_free() 2057 struct free_segmap_info *free_i = FREE_I(sbi); in get_new_segment() local 2067 spin_lock(&free_i->segmap_lock); in get_new_segment() 2070 segno = find_next_zero_bit(free_i->free_segmap, in get_new_segment() 2076 secno = find_next_zero_bit(free_i->free_secmap, MAIN_SECS(sbi), hint); in get_new_segment() 2079 secno = find_next_zero_bit(free_i->free_secmap, in get_new_segment() 2090 while (test_bit(left_start, free_i->free_secmap)) { in get_new_segment() 2095 left_start = find_next_zero_bit(free_i->free_secmap, in get_new_segment() 2135 f2fs_bug_on(sbi, test_bit(segno, free_i->free_segmap)); in get_new_segment() [all …]
|