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)
239 unsigned int start_segno; /* start segment number logically */ member
289 unsigned int start_segno; /* start segno of sits in set */ member
363 unsigned int start_segno = GET_SEG_FROM_SEC(sbi, secno); in set_ckpt_valid_blocks() local
367 for (i = 0; i < SEGS_PER_SEC(sbi); i++, start_segno++) { in set_ckpt_valid_blocks()
368 struct seg_entry *se = get_seg_entry(sbi, start_segno); in set_ckpt_valid_blocks()
380 unsigned int start_segno = GET_SEG_FROM_SEC(sbi, secno); in sanity_check_valid_blocks() local
384 for (i = 0; i < SEGS_PER_SEC(sbi); i++, start_segno++) { in sanity_check_valid_blocks()
385 struct seg_entry *se = get_seg_entry(sbi, start_segno); in sanity_check_valid_blocks()
[all …]
H A Dsegment.c2176 unsigned int secno, start_segno; in f2fs_clear_prefree_segments() local
2223 start_segno = GET_SEG_FROM_SEC(sbi, secno); in f2fs_clear_prefree_segments()
2226 f2fs_issue_discard(sbi, START_BLOCK(sbi, start_segno), in f2fs_clear_prefree_segments()
2229 start = start_segno + SEGS_PER_SEC(sbi); in f2fs_clear_prefree_segments()
3484 unsigned int start_segno, end_segno; in f2fs_trim_fs() local
3505 start_segno = (start <= MAIN_BLKADDR(sbi)) ? 0 : GET_SEGNO(sbi, start); in f2fs_trim_fs()
3509 start_segno = rounddown(start_segno, SEGS_PER_SEC(sbi)); in f2fs_trim_fs()
3515 cpc.trim_start = start_segno; in f2fs_trim_fs()
3537 start_block = START_BLOCK(sbi, start_segno); in f2fs_trim_fs()
4627 unsigned int start_segno = START_SEGNO(segno); in add_sit_entry() local
[all …]
H A Dgc.c1741 unsigned int start_segno, in do_garbage_collect() argument
1746 unsigned int segno = start_segno; in do_garbage_collect()
1747 unsigned int end_segno = start_segno + SEGS_PER_SEC(sbi); in do_garbage_collect()
1778 end_segno = start_segno + window_granularity; in do_garbage_collect()
1803 segno = rounddown(start_segno, sbi->sums_per_block); in do_garbage_collect()
1817 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.c3278 unsigned int start_segno = 0, end_segno = 0; in f2fs_ioc_flush_device() local
3316 start_segno = sm->last_victim[FLUSH_DEVICE]; in f2fs_ioc_flush_device()
3317 if (start_segno < dev_start_segno || start_segno >= dev_end_segno) in f2fs_ioc_flush_device()
3318 start_segno = dev_start_segno; in f2fs_ioc_flush_device()
3319 end_segno = min(start_segno + range.segments, dev_end_segno); in f2fs_ioc_flush_device()
3321 while (start_segno < end_segno) { in f2fs_ioc_flush_device()
3330 gc_control.victim_segno = start_segno; in f2fs_ioc_flush_device()
3337 start_segno++; in f2fs_ioc_flush_device()