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)
442 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno);
443 unsigned int start_segno = GET_SEG_FROM_SEC(sbi, secno);
454 clear_bit(secno, free_i->free_secmap);
464 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno);
468 if (!test_and_set_bit(secno, free_i->free_secmap))
476 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno);
477 unsigned int start_segno = GET_SEG_FROM_SEC(sbi, secno);
485 if (!inmem && IS_CURSEC(sbi, secno))
490 if (test_and_clear_bit(secno, free_i->free_secmap))
502 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno);
507 if (!test_and_set_bit(secno, free_i->free_secmap))
897 static inline bool sec_usage_check(struct f2fs_sb_info *sbi, unsigned int secno)
899 if (IS_CURSEC(sbi, secno) || (sbi->cur_victim_sec == secno))