Lines Matching refs:curseg
1367 struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_HOT_DATA); in f2fs_early_init_nid_bitmap() local
1368 struct f2fs_summary_block *sum = curseg->sum_blk; in f2fs_early_init_nid_bitmap()
1552 struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_HOT_DATA); in check_nat_bits() local
1553 struct f2fs_journal *journal = &curseg->sum_blk->journal; in check_nat_bits()
1750 struct curseg_info *curseg = CURSEG_I(sbi, type); in reset_curseg() local
1754 sum_footer = &(curseg->sum_blk->footer); in reset_curseg()
1760 se = get_seg_entry(sbi, curseg->segno); in reset_curseg()
1767 struct curseg_info *curseg; in read_compacted_summaries() local
1781 curseg = CURSEG_I(sbi, CURSEG_HOT_DATA); in read_compacted_summaries()
1782 memcpy(&curseg->sum_blk->journal.n_nats, kaddr, SUM_JOURNAL_SIZE); in read_compacted_summaries()
1784 curseg = CURSEG_I(sbi, CURSEG_COLD_DATA); in read_compacted_summaries()
1785 memcpy(&curseg->sum_blk->journal.n_sits, kaddr + SUM_JOURNAL_SIZE, in read_compacted_summaries()
1791 struct curseg_info *curseg = CURSEG_I(sbi, i); in read_compacted_summaries() local
1795 if (curseg->alloc_type == SSR) in read_compacted_summaries()
1798 blk_off = curseg->next_blkoff; in read_compacted_summaries()
1805 curseg->sum_blk->entries[j] = *s; in read_compacted_summaries()
1848 struct curseg_info *curseg; in read_normal_summaries() local
1877 curseg = CURSEG_I(sbi, type); in read_normal_summaries()
1878 memcpy(curseg->sum_blk, sum_blk, PAGE_CACHE_SIZE); in read_normal_summaries()
2100 struct curseg_info *curseg; in get_sum_block() local
2109 curseg = CURSEG_I(sbi, CURSEG_HOT_NODE + type); in get_sum_block()
2110 if (!IS_SUM_NODE_SEG(curseg->sum_blk->footer)) { in get_sum_block()
2118 return curseg->sum_blk; in get_sum_block()
2124 curseg = CURSEG_I(sbi, type); in get_sum_block()
2125 if (IS_SUM_NODE_SEG(curseg->sum_blk->footer)) { in get_sum_block()
2133 return curseg->sum_blk; in get_sum_block()
2294 struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_COLD_DATA); in build_sit_entries() local
2295 struct f2fs_journal *journal = &curseg->sum_blk->journal; in build_sit_entries()
2451 struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_COLD_DATA); in rewrite_sit_area_bitmap() local
2455 struct f2fs_summary_block *sum = curseg->sum_blk; in rewrite_sit_area_bitmap()
2501 struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_COLD_DATA); in flush_sit_journal_entries() local
2502 struct f2fs_journal *journal = &curseg->sum_blk->journal; in flush_sit_journal_entries()
2535 struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_HOT_DATA); in flush_nat_journal_entries() local
2536 struct f2fs_journal *journal = &curseg->sum_blk->journal; in flush_nat_journal_entries()
2610 struct curseg_info *curseg = CURSEG_I(sbi, type); in relocate_curseg_offset() local
2611 struct seg_entry *se = get_seg_entry(sbi, curseg->segno); in relocate_curseg_offset()
2626 type, curseg->next_blkoff, i, in relocate_curseg_offset()
2627 curseg->alloc_type == LFS ? "LFS" : "SSR"); in relocate_curseg_offset()
2629 curseg->next_blkoff = i; in relocate_curseg_offset()
2630 curseg->alloc_type = SSR; in relocate_curseg_offset()
2767 struct curseg_info *curseg = CURSEG_I(sbi, i); in move_one_curseg_info() local
2774 ssa_blk = GET_SUM_BLKADDR(sbi, curseg->segno); in move_one_curseg_info()
2775 ret = dev_write_block(curseg->sum_blk, ssa_blk); in move_one_curseg_info()
2783 old_segno = curseg->segno; in move_one_curseg_info()
2784 curseg->segno = GET_SEGNO(sbi, to); in move_one_curseg_info()
2785 curseg->next_blkoff = OFFSET_IN_SEG(sbi, to); in move_one_curseg_info()
2786 curseg->alloc_type = c.zoned_model == F2FS_ZONED_HM ? LFS : SSR; in move_one_curseg_info()
2789 ssa_blk = GET_SUM_BLKADDR(sbi, curseg->segno); in move_one_curseg_info()
2793 memcpy(curseg->sum_blk, &buf, SUM_ENTRIES_SIZE); in move_one_curseg_info()
2799 i, old_segno, curseg->segno, from); in move_one_curseg_info()
2850 struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_HOT_DATA); in lookup_nat_in_journal() local
2851 struct f2fs_journal *journal = &curseg->sum_blk->journal; in lookup_nat_in_journal()
2867 struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_HOT_DATA); in nullify_nat_entry() local
2868 struct f2fs_journal *journal = &curseg->sum_blk->journal; in nullify_nat_entry()
3010 struct curseg_info *curseg = CURSEG_I(sbi, i); in write_checkpoint() local
3013 ret = dev_write_block(curseg->sum_blk, cp_blk_no++); in write_checkpoint()
3017 ssa_blk = GET_SUM_BLKADDR(sbi, curseg->segno); in write_checkpoint()
3018 ret = dev_write_block(curseg->sum_blk, ssa_blk); in write_checkpoint()
3050 struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_HOT_DATA); in build_nat_area_bitmap() local
3051 struct f2fs_journal *journal = &curseg->sum_blk->journal; in build_nat_area_bitmap()
3274 struct curseg_info *curseg; in find_fsync_inode() local
3283 curseg = CURSEG_I(sbi, CURSEG_WARM_NODE); in find_fsync_inode()
3284 blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); in find_fsync_inode()
3419 struct curseg_info *curseg; in traverse_dnodes() local
3425 curseg = CURSEG_I(sbi, CURSEG_WARM_NODE); in traverse_dnodes()
3426 blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); in traverse_dnodes()