Searched refs:segno (Results 1 – 9 of 9) sorted by relevance
| /fs/f2fs/ |
| A 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 80 (((segno) == -1) ? -1 : (segno) / SEGS_PER_SEC(sbi)) 298 if (segno == CURSEG_I(sbi, i)->segno) in is_curseg() 352 unsigned int segno) in set_ckpt_valid_blocks() argument 369 unsigned int segno) in sanity_check_valid_blocks() argument 479 unsigned int segno) in __set_inuse() argument 612 segno = CURSEG_I(sbi, i)->segno; in has_curseg_enough_space() 619 SEGS_TO_BLKS(sbi, (segno - GET_START_SEG_FROM_SEC(sbi, segno))) - in has_curseg_enough_space() 632 segno = CURSEG_I(sbi, CURSEG_HOT_DATA)->segno; in has_curseg_enough_space() [all …]
|
| A D | gc.c | 476 ve->segno = segno; in __create_victim_entry() 749 unsigned int segno) in f2fs_gc_pinned_control() argument 921 p.min_segno = segno; in f2fs_get_victim() 1685 segno, off); in gc_data_segment() 1777 end_segno = segno - 1; in do_garbage_collect() 1778 for (segno = start_segno; segno < end_segno; segno++) { in do_garbage_collect() 1790 for (segno = start_segno; segno < end_segno; segno++) { in do_garbage_collect() 1827 segno, gc_type, in do_garbage_collect() 1985 segno = NULL_SEGNO; in f2fs_gc() 2059 unsigned int segno; in f2fs_gc_range() local [all …]
|
| A D | segment.c | 2757 unsigned int segno = curseg->segno + 1; in is_next_segment_free() local 2968 unsigned int segno = curseg->segno; in new_curseg() local 3268 segno = CURSEG_I(sbi, type)->segno; in f2fs_allocate_segment_for_resize() 3269 if (segno < start || segno > end) in f2fs_allocate_segment_for_resize() 3283 if (segno != curseg->segno) in f2fs_allocate_segment_for_resize() 3285 type, segno, curseg->segno); in f2fs_allocate_segment_for_resize() 4082 if (CURSEG_I(sbi, i)->segno == segno) in __f2fs_get_curseg() 4136 if (segno != curseg->segno) { in f2fs_do_replace_block() 5063 for (segno = 0; segno < MAIN_SEGS(sbi); segno += SEGS_PER_SEC(sbi)) { in build_sit_entries() 5146 for (segno = 0; segno < MAIN_SEGS(sbi); segno += SEGS_PER_SEC(sbi)) { in init_dirty_segmap() [all …]
|
| A D | debug.c | 37 unsigned int segno, vblocks; in f2fs_update_sit_info() local 44 for (segno = 0; segno < MAIN_SEGS(sbi); segno += SEGS_PER_SEC(sbi)) { in f2fs_update_sit_info() 45 vblocks = get_valid_blocks(sbi, segno, true); in f2fs_update_sit_info() 254 si->curseg[i] = curseg->segno; in update_general_status() 255 si->cursec[i] = GET_SEC_FROM_SEG(sbi, curseg->segno); in update_general_status()
|
| A D | recovery.c | 493 unsigned int segno = GET_SEGNO(sbi, blkaddr); in check_index_in_prev_nodes() local 505 sentry = get_seg_entry(sbi, segno); in check_index_in_prev_nodes() 513 if (curseg->segno == segno) { in check_index_in_prev_nodes() 519 sum_folio = f2fs_get_sum_folio(sbi, segno); in check_index_in_prev_nodes()
|
| A D | gc.h | 83 unsigned int segno; /* segment No. */ member
|
| A D | checkpoint.c | 141 unsigned int segno, offset; in __is_bitmap_valid() local 147 segno = GET_SEGNO(sbi, blkaddr); in __is_bitmap_valid() 149 se = get_seg_entry(sbi, segno); in __is_bitmap_valid() 1468 ckpt->cur_node_segno[i] = cpu_to_le32(curseg->segno); in do_checkpoint() 1475 ckpt->cur_data_segno[i] = cpu_to_le32(curseg->segno); in do_checkpoint()
|
| A D | f2fs.h | 470 #define segno_in_journal(jnl, i) ((jnl)->sit_j.entries[i].segno) 3809 unsigned int segno, struct f2fs_summary_block *sum); 3842 bool f2fs_segment_has_free_slot(struct f2fs_sb_info *sbi, int segno); 3855 struct folio *f2fs_get_sum_folio(struct f2fs_sb_info *sbi, unsigned int segno); 3902 unsigned int segno); 3904 unsigned int segno);
|
| A D | node.c | 2895 unsigned int segno, struct f2fs_summary_block *sum) in f2fs_restore_node_summary() argument 2904 addr = START_BLOCK(sbi, segno); in f2fs_restore_node_summary()
|
Completed in 62 milliseconds