• Home
  • Raw
  • Download

Lines Matching refs:secno

42 #define IS_CURSEC(sbi, secno)						\  argument
43 (((secno) == CURSEG_I(sbi, CURSEG_HOT_DATA)->segno / \
45 ((secno) == CURSEG_I(sbi, CURSEG_WARM_DATA)->segno / \
47 ((secno) == CURSEG_I(sbi, CURSEG_COLD_DATA)->segno / \
49 ((secno) == CURSEG_I(sbi, CURSEG_HOT_NODE)->segno / \
51 ((secno) == CURSEG_I(sbi, CURSEG_WARM_NODE)->segno / \
53 ((secno) == CURSEG_I(sbi, CURSEG_COLD_NODE)->segno / \
95 #define GET_SEG_FROM_SEC(sbi, secno) \ argument
96 ((secno) * (sbi)->segs_per_sec)
97 #define GET_ZONE_FROM_SEC(sbi, secno) \ argument
98 ((secno) / (sbi)->secs_per_zone)
407 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno); in __set_free() local
408 unsigned int start_segno = GET_SEG_FROM_SEC(sbi, secno); in __set_free()
418 clear_bit(secno, free_i->free_secmap); in __set_free()
428 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno); in __set_inuse() local
432 if (!test_and_set_bit(secno, free_i->free_secmap)) in __set_inuse()
440 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno); in __set_test_and_free() local
441 unsigned int start_segno = GET_SEG_FROM_SEC(sbi, secno); in __set_test_and_free()
451 if (test_and_clear_bit(secno, free_i->free_secmap)) in __set_test_and_free()
462 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno); in __set_test_and_inuse() local
467 if (!test_and_set_bit(secno, free_i->free_secmap)) in __set_test_and_inuse()
775 unsigned int secno) in no_fggc_candidate() argument
777 if (get_valid_blocks(sbi, GET_SEG_FROM_SEC(sbi, secno), true) > in no_fggc_candidate()
783 static inline bool sec_usage_check(struct f2fs_sb_info *sbi, unsigned int secno) in sec_usage_check() argument
785 if (IS_CURSEC(sbi, secno) || (sbi->cur_victim_sec == secno)) in sec_usage_check()