Home
last modified time | relevance | path

Searched refs:start_segno (Results 1 – 5 of 5) sorted by relevance

/linux/fs/f2fs/
H A Dsegment.h24 #define GET_L2R_SEGNO(free_i, segno) ((segno) - (free_i)->start_segno)
25 #define GET_R2L_SEGNO(free_i, segno) ((segno) + (free_i)->start_segno)
235 unsigned int start_segno; /* start segment number logically */ member
285 unsigned int start_segno; /* start segno of sits in set */ member
359 unsigned int start_segno = GET_SEG_FROM_SEC(sbi, secno); in set_ckpt_valid_blocks() local
363 for (i = 0; i < SEGS_PER_SEC(sbi); i++, start_segno++) { in set_ckpt_valid_blocks()
364 struct seg_entry *se = get_seg_entry(sbi, start_segno); in set_ckpt_valid_blocks()
376 unsigned int start_segno = GET_SEG_FROM_SEC(sbi, secno); in sanity_check_valid_blocks() local
380 for (i = 0; i < SEGS_PER_SEC(sbi); i++, start_segno++) { in sanity_check_valid_blocks()
381 struct seg_entry *se = get_seg_entry(sbi, start_segno); in sanity_check_valid_blocks()
[all …]
H A Dsegment.c2232 unsigned int secno, start_segno; in f2fs_clear_prefree_segments() local
2279 start_segno = GET_SEG_FROM_SEC(sbi, secno); in f2fs_clear_prefree_segments()
2282 f2fs_issue_discard(sbi, START_BLOCK(sbi, start_segno), in f2fs_clear_prefree_segments()
2285 start = start_segno + SEGS_PER_SEC(sbi); in f2fs_clear_prefree_segments()
3597 unsigned int start_segno, end_segno; in f2fs_trim_fs() local
3618 start_segno = (start <= MAIN_BLKADDR(sbi)) ? 0 : GET_SEGNO(sbi, start); in f2fs_trim_fs()
3622 start_segno = rounddown(start_segno, SEGS_PER_SEC(sbi)); in f2fs_trim_fs()
3628 cpc.trim_start = start_segno; in f2fs_trim_fs()
3650 start_block = START_BLOCK(sbi, start_segno); in f2fs_trim_fs()
4751 unsigned int start_segno = START_SEGNO(segno); in add_sit_entry() local
[all …]
H A Dgc.c1772 unsigned int start_segno, in do_garbage_collect() argument
1777 unsigned int segno = start_segno; in do_garbage_collect()
1778 unsigned int end_segno = start_segno + SEGS_PER_SEC(sbi); in do_garbage_collect()
1808 end_segno = start_segno + window_granularity; in do_garbage_collect()
1833 segno = rounddown(start_segno, sbi->sums_per_block); in do_garbage_collect()
1847 segno = start_segno; in do_garbage_collect()
H A Ddebug.c74 unsigned int start_segno, end_segno; in update_multidevice_stats() local
85 start_segno = GET_SEGNO(sbi, start_blk); in update_multidevice_stats()
88 for (j = start_segno; j < end_segno; j++) { in update_multidevice_stats()
H A Dfile.c3402 unsigned int start_segno = 0, end_segno = 0; in f2fs_ioc_flush_device() local
3440 start_segno = sm->last_victim[FLUSH_DEVICE]; in f2fs_ioc_flush_device()
3441 if (start_segno < dev_start_segno || start_segno >= dev_end_segno) in f2fs_ioc_flush_device()
3442 start_segno = dev_start_segno; in f2fs_ioc_flush_device()
3443 end_segno = min(start_segno + range.segments, dev_end_segno); in f2fs_ioc_flush_device()
3445 while (start_segno < end_segno) { in f2fs_ioc_flush_device()
3454 gc_control.victim_segno = start_segno; in f2fs_ioc_flush_device()
3461 start_segno++; in f2fs_ioc_flush_device()