Lines Matching defs: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 / \
109 #define GET_SEG_FROM_SEC(sbi, secno) \
110 ((secno) * SEGS_PER_SEC(sbi))
111 #define GET_ZONE_FROM_SEC(sbi, secno) \
112 (((secno) == -1) ? -1 : (secno) / (sbi)->secs_per_zone)
429 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno);
430 unsigned int start_segno = GET_SEG_FROM_SEC(sbi, secno);
441 clear_bit(secno, free_i->free_secmap);
451 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno);
455 if (!test_and_set_bit(secno, free_i->free_secmap))
463 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno);
464 unsigned int start_segno = GET_SEG_FROM_SEC(sbi, secno);
472 if (!inmem && IS_CURSEC(sbi, secno))
477 if (test_and_clear_bit(secno, free_i->free_secmap))
489 unsigned int secno = GET_SEC_FROM_SEG(sbi, segno);
494 if (!test_and_set_bit(secno, free_i->free_secmap))
884 static inline bool sec_usage_check(struct f2fs_sb_info *sbi, unsigned int secno)
886 if (IS_CURSEC(sbi, secno) || (sbi->cur_victim_sec == secno))