curseg 131 fs/f2fs/debug.c struct curseg_info *curseg = CURSEG_I(sbi, i); curseg 132 fs/f2fs/debug.c si->curseg[i] = curseg->segno; curseg 133 fs/f2fs/debug.c si->cursec[i] = GET_SEC_FROM_SEG(sbi, curseg->segno); curseg 324 fs/f2fs/debug.c si->curseg[CURSEG_COLD_DATA], curseg 328 fs/f2fs/debug.c si->curseg[CURSEG_WARM_DATA], curseg 332 fs/f2fs/debug.c si->curseg[CURSEG_HOT_DATA], curseg 336 fs/f2fs/debug.c si->curseg[CURSEG_HOT_NODE], curseg 340 fs/f2fs/debug.c si->curseg[CURSEG_WARM_NODE], curseg 344 fs/f2fs/debug.c si->curseg[CURSEG_COLD_NODE], curseg 3300 fs/f2fs/f2fs.h int curseg[NR_CURSEG_TYPE]; curseg 3369 fs/f2fs/f2fs.h #define stat_inc_seg_type(sbi, curseg) \ curseg 3370 fs/f2fs/f2fs.h ((sbi)->segment_count[(curseg)->alloc_type]++) curseg 3371 fs/f2fs/f2fs.h #define stat_inc_block_count(sbi, curseg) \ curseg 3372 fs/f2fs/f2fs.h ((sbi)->block_count[(curseg)->alloc_type]++) curseg 3459 fs/f2fs/f2fs.h #define stat_inc_seg_type(sbi, curseg) do { } while (0) curseg 3460 fs/f2fs/f2fs.h #define stat_inc_block_count(sbi, curseg) do { } while (0) curseg 520 fs/f2fs/node.c struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_HOT_DATA); curseg 521 fs/f2fs/node.c struct f2fs_journal *journal = curseg->journal; curseg 547 fs/f2fs/node.c down_read(&curseg->journal_rwsem); curseg 553 fs/f2fs/node.c up_read(&curseg->journal_rwsem); curseg 2257 fs/f2fs/node.c struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_HOT_DATA); curseg 2258 fs/f2fs/node.c struct f2fs_journal *journal = curseg->journal; curseg 2261 fs/f2fs/node.c down_read(&curseg->journal_rwsem); curseg 2273 fs/f2fs/node.c up_read(&curseg->journal_rwsem); curseg 2703 fs/f2fs/node.c struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_HOT_DATA); curseg 2704 fs/f2fs/node.c struct f2fs_journal *journal = curseg->journal; curseg 2707 fs/f2fs/node.c down_write(&curseg->journal_rwsem); curseg 2736 fs/f2fs/node.c up_write(&curseg->journal_rwsem); curseg 2793 fs/f2fs/node.c struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_HOT_DATA); curseg 2794 fs/f2fs/node.c struct f2fs_journal *journal = curseg->journal; curseg 2811 fs/f2fs/node.c down_write(&curseg->journal_rwsem); curseg 2851 fs/f2fs/node.c up_write(&curseg->journal_rwsem); curseg 2871 fs/f2fs/node.c struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_HOT_DATA); curseg 2872 fs/f2fs/node.c struct f2fs_journal *journal = curseg->journal; curseg 302 fs/f2fs/recovery.c struct curseg_info *curseg; curseg 311 fs/f2fs/recovery.c curseg = CURSEG_I(sbi, CURSEG_WARM_NODE); curseg 312 fs/f2fs/recovery.c blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); curseg 419 fs/f2fs/recovery.c struct curseg_info *curseg = CURSEG_I(sbi, i); curseg 420 fs/f2fs/recovery.c if (curseg->segno == segno) { curseg 421 fs/f2fs/recovery.c sum = curseg->sum_blk->entries[blkoff]; curseg 650 fs/f2fs/recovery.c struct curseg_info *curseg; curseg 656 fs/f2fs/recovery.c curseg = CURSEG_I(sbi, CURSEG_WARM_NODE); curseg 657 fs/f2fs/recovery.c blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); curseg 2272 fs/f2fs/segment.c struct curseg_info *curseg = CURSEG_I(sbi, type); curseg 2273 fs/f2fs/segment.c void *addr = curseg->sum_blk; curseg 2274 fs/f2fs/segment.c addr += curseg->next_blkoff * sizeof(struct f2fs_summary); curseg 2335 fs/f2fs/segment.c struct curseg_info *curseg = CURSEG_I(sbi, type); curseg 2337 fs/f2fs/segment.c struct f2fs_summary_block *src = curseg->sum_blk; curseg 2343 fs/f2fs/segment.c mutex_lock(&curseg->curseg_mutex); curseg 2345 fs/f2fs/segment.c down_read(&curseg->journal_rwsem); curseg 2346 fs/f2fs/segment.c memcpy(&dst->journal, curseg->journal, SUM_JOURNAL_SIZE); curseg 2347 fs/f2fs/segment.c up_read(&curseg->journal_rwsem); curseg 2352 fs/f2fs/segment.c mutex_unlock(&curseg->curseg_mutex); curseg 2360 fs/f2fs/segment.c struct curseg_info *curseg = CURSEG_I(sbi, type); curseg 2361 fs/f2fs/segment.c unsigned int segno = curseg->segno + 1; curseg 2462 fs/f2fs/segment.c struct curseg_info *curseg = CURSEG_I(sbi, type); curseg 2465 fs/f2fs/segment.c curseg->segno = curseg->next_segno; curseg 2466 fs/f2fs/segment.c curseg->zone = GET_ZONE_FROM_SEG(sbi, curseg->segno); curseg 2467 fs/f2fs/segment.c curseg->next_blkoff = 0; curseg 2468 fs/f2fs/segment.c curseg->next_segno = NULL_SEGNO; curseg 2470 fs/f2fs/segment.c sum_footer = &(curseg->sum_blk->footer); curseg 2476 fs/f2fs/segment.c __set_sit_entry_type(sbi, type, curseg->segno, modified); curseg 2508 fs/f2fs/segment.c struct curseg_info *curseg = CURSEG_I(sbi, type); curseg 2509 fs/f2fs/segment.c unsigned int segno = curseg->segno; curseg 2512 fs/f2fs/segment.c write_sum_page(sbi, curseg->sum_blk, curseg 2522 fs/f2fs/segment.c curseg->next_segno = segno; curseg 2524 fs/f2fs/segment.c curseg->alloc_type = LFS; curseg 2566 fs/f2fs/segment.c struct curseg_info *curseg = CURSEG_I(sbi, type); curseg 2567 fs/f2fs/segment.c unsigned int new_segno = curseg->next_segno; curseg 2571 fs/f2fs/segment.c write_sum_page(sbi, curseg->sum_blk, curseg 2572 fs/f2fs/segment.c GET_SUM_BLOCK(sbi, curseg->segno)); curseg 2581 fs/f2fs/segment.c curseg->alloc_type = SSR; curseg 2582 fs/f2fs/segment.c __next_free_blkoff(sbi, curseg, 0); curseg 2587 fs/f2fs/segment.c memcpy(curseg->sum_blk, sum_node, SUM_ENTRY_SIZE); curseg 2593 fs/f2fs/segment.c struct curseg_info *curseg = CURSEG_I(sbi, type); curseg 2601 fs/f2fs/segment.c curseg->next_segno = segno; curseg 2628 fs/f2fs/segment.c curseg->next_segno = segno; curseg 2637 fs/f2fs/segment.c curseg->next_segno = segno; curseg 2651 fs/f2fs/segment.c struct curseg_info *curseg = CURSEG_I(sbi, type); curseg 2658 fs/f2fs/segment.c else if (curseg->alloc_type == LFS && is_next_segment_free(sbi, type) && curseg 2666 fs/f2fs/segment.c stat_inc_seg_type(sbi, curseg); curseg 2672 fs/f2fs/segment.c struct curseg_info *curseg = CURSEG_I(sbi, type); curseg 2676 fs/f2fs/segment.c mutex_lock(&curseg->curseg_mutex); curseg 2688 fs/f2fs/segment.c stat_inc_seg_type(sbi, curseg); curseg 2694 fs/f2fs/segment.c if (segno != curseg->segno) curseg 2696 fs/f2fs/segment.c type, segno, curseg->segno); curseg 2698 fs/f2fs/segment.c mutex_unlock(&curseg->curseg_mutex); curseg 2704 fs/f2fs/segment.c struct curseg_info *curseg; curseg 2711 fs/f2fs/segment.c curseg = CURSEG_I(sbi, i); curseg 2712 fs/f2fs/segment.c old_segno = curseg->segno; curseg 2887 fs/f2fs/segment.c struct curseg_info *curseg = CURSEG_I(sbi, type); curseg 2888 fs/f2fs/segment.c if (curseg->next_blkoff < sbi->blocks_per_seg) curseg 3079 fs/f2fs/segment.c struct curseg_info *curseg = CURSEG_I(sbi, type); curseg 3083 fs/f2fs/segment.c mutex_lock(&curseg->curseg_mutex); curseg 3086 fs/f2fs/segment.c *new_blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); curseg 3097 fs/f2fs/segment.c __refresh_next_blkoff(sbi, curseg); curseg 3099 fs/f2fs/segment.c stat_inc_block_count(sbi, curseg); curseg 3123 fs/f2fs/segment.c fill_node_footer_blkaddr(page, NEXT_FREE_BLKADDR(sbi, curseg)); curseg 3142 fs/f2fs/segment.c mutex_unlock(&curseg->curseg_mutex); curseg 3296 fs/f2fs/segment.c struct curseg_info *curseg; curseg 3327 fs/f2fs/segment.c curseg = CURSEG_I(sbi, type); curseg 3329 fs/f2fs/segment.c mutex_lock(&curseg->curseg_mutex); curseg 3332 fs/f2fs/segment.c old_cursegno = curseg->segno; curseg 3333 fs/f2fs/segment.c old_blkoff = curseg->next_blkoff; curseg 3336 fs/f2fs/segment.c if (segno != curseg->segno) { curseg 3337 fs/f2fs/segment.c curseg->next_segno = segno; curseg 3341 fs/f2fs/segment.c curseg->next_blkoff = GET_BLKOFF_FROM_SEG0(sbi, new_blkaddr); curseg 3358 fs/f2fs/segment.c if (old_cursegno != curseg->segno) { curseg 3359 fs/f2fs/segment.c curseg->next_segno = old_cursegno; curseg 3362 fs/f2fs/segment.c curseg->next_blkoff = old_blkoff; curseg 3366 fs/f2fs/segment.c mutex_unlock(&curseg->curseg_mutex); curseg 3496 fs/f2fs/segment.c struct curseg_info *curseg; curseg 3545 fs/f2fs/segment.c curseg = CURSEG_I(sbi, type); curseg 3546 fs/f2fs/segment.c mutex_lock(&curseg->curseg_mutex); curseg 3549 fs/f2fs/segment.c down_write(&curseg->journal_rwsem); curseg 3550 fs/f2fs/segment.c memcpy(curseg->journal, &sum->journal, SUM_JOURNAL_SIZE); curseg 3551 fs/f2fs/segment.c up_write(&curseg->journal_rwsem); curseg 3553 fs/f2fs/segment.c memcpy(curseg->sum_blk->entries, sum->entries, SUM_ENTRY_SIZE); curseg 3554 fs/f2fs/segment.c memcpy(&curseg->sum_blk->footer, &sum->footer, SUM_FOOTER_SIZE); curseg 3555 fs/f2fs/segment.c curseg->next_segno = segno; curseg 3557 fs/f2fs/segment.c curseg->alloc_type = ckpt->alloc_type[type]; curseg 3558 fs/f2fs/segment.c curseg->next_blkoff = blk_off; curseg 3559 fs/f2fs/segment.c mutex_unlock(&curseg->curseg_mutex); curseg 3802 fs/f2fs/segment.c struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_COLD_DATA); curseg 3803 fs/f2fs/segment.c struct f2fs_journal *journal = curseg->journal; curseg 3806 fs/f2fs/segment.c down_write(&curseg->journal_rwsem); curseg 3818 fs/f2fs/segment.c up_write(&curseg->journal_rwsem); curseg 3829 fs/f2fs/segment.c struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_COLD_DATA); curseg 3830 fs/f2fs/segment.c struct f2fs_journal *journal = curseg->journal; curseg 3874 fs/f2fs/segment.c down_write(&curseg->journal_rwsem); curseg 3921 fs/f2fs/segment.c up_write(&curseg->journal_rwsem); curseg 4116 fs/f2fs/segment.c struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_COLD_DATA); curseg 4117 fs/f2fs/segment.c struct f2fs_journal *journal = curseg->journal; curseg 4172 fs/f2fs/segment.c down_read(&curseg->journal_rwsem); curseg 4214 fs/f2fs/segment.c up_read(&curseg->journal_rwsem); curseg 4319 fs/f2fs/segment.c struct curseg_info *curseg = CURSEG_I(sbi, i); curseg 4320 fs/f2fs/segment.c struct seg_entry *se = get_seg_entry(sbi, curseg->segno); curseg 4321 fs/f2fs/segment.c unsigned int blkofs = curseg->next_blkoff; curseg 4326 fs/f2fs/segment.c if (curseg->alloc_type == SSR) curseg 4335 fs/f2fs/segment.c i, curseg->segno, curseg->alloc_type, curseg 4336 fs/f2fs/segment.c curseg->next_blkoff, blkofs); curseg 75 fs/f2fs/segment.h #define NEXT_FREE_BLKADDR(sbi, curseg) \ curseg 76 fs/f2fs/segment.h (START_BLOCK(sbi, (curseg)->segno) + (curseg)->next_blkoff) curseg 641 fs/f2fs/segment.h struct curseg_info *curseg = CURSEG_I(sbi, type); curseg 642 fs/f2fs/segment.h return curseg->segno; curseg 648 fs/f2fs/segment.h struct curseg_info *curseg = CURSEG_I(sbi, type); curseg 649 fs/f2fs/segment.h return curseg->alloc_type; curseg 654 fs/f2fs/segment.h struct curseg_info *curseg = CURSEG_I(sbi, type); curseg 655 fs/f2fs/segment.h return curseg->next_blkoff;