Lines Matching refs:curseg
2066 /* 1. check sit usage with CP: curseg is lost? */
2072 /* curseg has not been written back to device */
2073 MSG(1, "\tInfo: curseg %u is counted in valid segs\n", i);
2274 /* update curseg sit entries, since we may change
2278 struct curseg_info *curseg = CURSEG_I(sbi, i);
2282 se = get_seg_entry(sbi, curseg->segno);
2283 get_current_sit_page(sbi, curseg->segno, sit_blk);
2284 sit = &sit_blk->entries[SIT_ENTRY_OFFSET(sit_i, curseg->segno)];
2287 rewrite_current_sit_page(sbi, curseg->segno, sit_blk);
2378 struct curseg_info *curseg = CURSEG_I(sbi, i);
2383 ret = dev_write_block(curseg->sum_blk, cp_blk_no++);
2443 struct curseg_info *curseg = CURSEG_I(sbi, type);
2452 /* get the device the curseg points to */
2453 cs_block = START_BLOCK(sbi, curseg->segno) + curseg->next_blkoff;
2468 /* get write pointer position of the zone the curseg points to */
2478 /* check consistency between the curseg and the write pointer */
2487 MSG(0, "Inconsistent write pointer with curseg %d: "
2488 "curseg %d[0x%x,0x%x] > wp[0x%x,0x%x]\n",
2489 type, type, curseg->segno, curseg->next_blkoff,
2495 MSG(0, "Write pointer goes advance from curseg %d: "
2496 "curseg %d[0x%x,0x%x] wp[0x%x,0x%x]\n",
2497 type, type, curseg->segno, curseg->next_blkoff,
2501 GET_SEC_FROM_SEG(sbi, curseg->segno));
2506 * If valid blocks exist between the curseg position and the write
2509 * If valid blocks exist between the curseg's zone start and the curseg
2510 * position, or if there is no valid block in the curseg's zone, fix
2511 * the inconsistency between the curseg and the writ pointer.
2512 * Of Note is that if there is no valid block in the curseg's zone,
2517 MSG(0, "Curseg has fsync data: curseg %d[0x%x,0x%x] "
2519 type, curseg->segno, curseg->next_blkoff,
2542 struct curseg_info *curseg = CURSEG_I(sbi, type);
2550 if ((curseg->next_blkoff >> 3) >= SIT_VBLOCK_MAP_SIZE) {
2552 curseg->next_blkoff, type);
2555 se = get_seg_entry(sbi, curseg->segno);
2556 if (f2fs_test_bit(curseg->next_blkoff,
2561 if (curseg->alloc_type == SSR)
2565 for (j = curseg->next_blkoff + 1; j < nblocks; j++) {
2567 ASSERT_MSG("For LFS curseg, space after .next_blkoff "
3033 /* if a curseg points to the zone, skip the check */
3136 struct curseg_info *curseg;
3142 curseg = CURSEG_I(sbi, i);
3143 se = get_seg_entry(sbi, curseg->segno);
3144 sum_blk = curseg->sum_blk;
3151 ASSERT_MSG("Incorrect curseg [%d]: segno [0x%x] "
3152 "type(SIT) [%d]", i, curseg->segno,
3163 ASSERT_MSG("Incorrect curseg [%d]: segno [0x%x] "
3164 "type(SSA) [%d]", i, curseg->segno,