Searched refs:free_i (Results 1 – 2 of 2) sorted by relevance
/Linux-v4.19/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 397 static inline unsigned int find_next_inuse(struct free_segmap_info *free_i, in find_next_inuse() argument 401 spin_lock(&free_i->segmap_lock); in find_next_inuse() 402 ret = find_next_bit(free_i->free_segmap, max, segno); in find_next_inuse() 403 spin_unlock(&free_i->segmap_lock); in find_next_inuse() 409 struct free_segmap_info *free_i = FREE_I(sbi); in __set_free() local 414 spin_lock(&free_i->segmap_lock); in __set_free() 415 clear_bit(segno, free_i->free_segmap); in __set_free() 416 free_i->free_segments++; in __set_free() [all …]
|
D | segment.c | 2215 struct free_segmap_info *free_i = FREE_I(sbi); in is_next_segment_free() local 2218 return !test_bit(segno, free_i->free_segmap); in is_next_segment_free() 2229 struct free_segmap_info *free_i = FREE_I(sbi); in get_new_segment() local 2239 spin_lock(&free_i->segmap_lock); in get_new_segment() 2242 segno = find_next_zero_bit(free_i->free_segmap, in get_new_segment() 2248 secno = find_next_zero_bit(free_i->free_secmap, MAIN_SECS(sbi), hint); in get_new_segment() 2251 secno = find_next_zero_bit(free_i->free_secmap, in get_new_segment() 2262 while (test_bit(left_start, free_i->free_secmap)) { in get_new_segment() 2267 left_start = find_next_zero_bit(free_i->free_secmap, in get_new_segment() 2307 f2fs_bug_on(sbi, test_bit(segno, free_i->free_segmap)); in get_new_segment() [all …]
|