Lines Matching refs:secno
49 #define IS_CURSEC(sbi, secno) \
50 (((secno) == CURSEG_I(sbi, CURSEG_HOT_DATA)->segno / \
52 ((secno) == CURSEG_I(sbi, CURSEG_WARM_DATA)->segno / \
54 ((secno) == CURSEG_I(sbi, CURSEG_COLD_DATA)->segno / \
56 ((secno) == CURSEG_I(sbi, CURSEG_HOT_NODE)->segno / \
58 ((secno) == CURSEG_I(sbi, CURSEG_WARM_NODE)->segno / \
60 ((secno) == CURSEG_I(sbi, CURSEG_COLD_NODE)->segno / \
62 ((secno) == CURSEG_I(sbi, CURSEG_COLD_DATA_PINNED)->segno / \
64 ((secno) == CURSEG_I(sbi, CURSEG_ALL_DATA_ATGC)->segno / \
112 #define GET_SEG_FROM_SEC(sbi, secno) \
113 ((secno) * (sbi)->segs_per_sec)
114 #define GET_ZONE_FROM_SEC(sbi, secno) \
115 (((secno) == -1) ? -1: (secno) / (sbi)->secs_per_zone)
471 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno);
472 unsigned int start_segno = GET_SEG_FROM_SEC(sbi, secno);
483 clear_bit(secno, free_i->free_secmap);
493 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno);
497 if (!test_and_set_bit(secno, free_i->free_secmap))
505 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno);
506 unsigned int start_segno = GET_SEG_FROM_SEC(sbi, secno);
514 if (!inmem && IS_CURSEC(sbi, secno))
519 if (test_and_clear_bit(secno, free_i->free_secmap))
531 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno);
536 if (!test_and_set_bit(secno, free_i->free_secmap))
876 static inline bool sec_usage_check(struct f2fs_sb_info *sbi, unsigned int secno)
878 if (IS_CURSEC(sbi, secno) || (sbi->cur_victim_sec == secno))