Lines Matching refs:secno
318 unsigned int secno; in check_bg_victims() local
325 for_each_set_bit(secno, dirty_i->victim_secmap, MAIN_SECS(sbi)) { in check_bg_victims()
326 if (sec_usage_check(sbi, secno)) in check_bg_victims()
328 clear_bit(secno, dirty_i->victim_secmap); in check_bg_victims()
329 return GET_SEG_FROM_SEC(sbi, secno); in check_bg_victims()
337 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno); in get_cb_cost() local
338 unsigned int start = GET_SEG_FROM_SEC(sbi, secno); in get_cb_cost()
490 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno); in add_victim_entry() local
491 unsigned int start = GET_SEG_FROM_SEC(sbi, secno); in add_victim_entry()
692 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno); in f2fs_pin_section() local
696 if (!test_and_set_bit(secno, dirty_i->pinned_secmap)) in f2fs_pin_section()
707 unsigned int secno) in f2fs_section_is_pinned() argument
711 test_bit(secno, dirty_i->pinned_secmap); in f2fs_section_is_pinned()
752 unsigned int secno, last_victim; in f2fs_get_victim() local
850 secno = GET_SEC_FROM_SEG(sbi, segno); in f2fs_get_victim()
852 if (sec_usage_check(sbi, secno)) in f2fs_get_victim()
875 if (gc_type == BG_GC && test_bit(secno, dirty_i->victim_secmap)) in f2fs_get_victim()
878 if (gc_type == FG_GC && f2fs_section_is_pinned(dirty_i, secno)) in f2fs_get_victim()
922 secno = GET_SEC_FROM_SEG(sbi, p.min_segno); in f2fs_get_victim()
924 sbi->cur_victim_sec = secno; in f2fs_get_victim()
926 set_bit(secno, dirty_i->victim_secmap); in f2fs_get_victim()