Lines Matching refs:curseg
1455 struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_HOT_DATA); in f2fs_early_init_nid_bitmap() local
1456 struct f2fs_summary_block *sum = curseg->sum_blk; in f2fs_early_init_nid_bitmap()
1640 struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_HOT_DATA); in check_nat_bits() local
1641 struct f2fs_journal *journal = &curseg->sum_blk->journal; in check_nat_bits()
1838 struct curseg_info *curseg = CURSEG_I(sbi, type); in reset_curseg() local
1842 sum_footer = &(curseg->sum_blk->footer); in reset_curseg()
1848 se = get_seg_entry(sbi, curseg->segno); in reset_curseg()
1855 struct curseg_info *curseg; in read_compacted_summaries() local
1869 curseg = CURSEG_I(sbi, CURSEG_HOT_DATA); in read_compacted_summaries()
1870 memcpy(&curseg->sum_blk->journal.n_nats, kaddr, SUM_JOURNAL_SIZE); in read_compacted_summaries()
1872 curseg = CURSEG_I(sbi, CURSEG_COLD_DATA); in read_compacted_summaries()
1873 memcpy(&curseg->sum_blk->journal.n_sits, kaddr + SUM_JOURNAL_SIZE, in read_compacted_summaries()
1879 struct curseg_info *curseg = CURSEG_I(sbi, i); in read_compacted_summaries() local
1883 if (curseg->alloc_type == SSR) in read_compacted_summaries()
1886 blk_off = curseg->next_blkoff; in read_compacted_summaries()
1893 curseg->sum_blk->entries[j] = *s; in read_compacted_summaries()
1936 struct curseg_info *curseg; in read_normal_summaries() local
1965 curseg = CURSEG_I(sbi, type); in read_normal_summaries()
1966 memcpy(curseg->sum_blk, sum_blk, PAGE_CACHE_SIZE); in read_normal_summaries()
2192 struct curseg_info *curseg; in get_sum_block() local
2201 curseg = CURSEG_I(sbi, CURSEG_HOT_NODE + type); in get_sum_block()
2202 if (!IS_SUM_NODE_SEG(curseg->sum_blk->footer)) { in get_sum_block()
2210 return curseg->sum_blk; in get_sum_block()
2216 curseg = CURSEG_I(sbi, type); in get_sum_block()
2217 if (IS_SUM_NODE_SEG(curseg->sum_blk->footer)) { in get_sum_block()
2225 return curseg->sum_blk; in get_sum_block()
2386 struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_COLD_DATA); in build_sit_entries() local
2387 struct f2fs_journal *journal = &curseg->sum_blk->journal; in build_sit_entries()
2543 struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_COLD_DATA); in rewrite_sit_area_bitmap() local
2547 struct f2fs_summary_block *sum = curseg->sum_blk; in rewrite_sit_area_bitmap()
2593 struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_COLD_DATA); in flush_sit_journal_entries() local
2594 struct f2fs_journal *journal = &curseg->sum_blk->journal; in flush_sit_journal_entries()
2627 struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_HOT_DATA); in flush_nat_journal_entries() local
2628 struct f2fs_journal *journal = &curseg->sum_blk->journal; in flush_nat_journal_entries()
2702 struct curseg_info *curseg = CURSEG_I(sbi, type); in relocate_curseg_offset() local
2703 struct seg_entry *se = get_seg_entry(sbi, curseg->segno); in relocate_curseg_offset()
2718 type, curseg->next_blkoff, i, in relocate_curseg_offset()
2719 curseg->alloc_type == LFS ? "LFS" : "SSR"); in relocate_curseg_offset()
2721 curseg->next_blkoff = i; in relocate_curseg_offset()
2722 curseg->alloc_type = SSR; in relocate_curseg_offset()
2859 struct curseg_info *curseg = CURSEG_I(sbi, i); in move_one_curseg_info() local
2872 ssa_blk = GET_SUM_BLKADDR(sbi, curseg->segno); in move_one_curseg_info()
2873 ret = dev_write_block(curseg->sum_blk, ssa_blk); in move_one_curseg_info()
2881 old_segno = curseg->segno; in move_one_curseg_info()
2882 curseg->segno = GET_SEGNO(sbi, to); in move_one_curseg_info()
2883 curseg->next_blkoff = OFFSET_IN_SEG(sbi, to); in move_one_curseg_info()
2884 curseg->alloc_type = c.zoned_model == F2FS_ZONED_HM ? LFS : SSR; in move_one_curseg_info()
2887 ssa_blk = GET_SUM_BLKADDR(sbi, curseg->segno); in move_one_curseg_info()
2891 memcpy(curseg->sum_blk, &buf, SUM_ENTRIES_SIZE); in move_one_curseg_info()
2897 i, old_segno, curseg->segno, from); in move_one_curseg_info()
2948 struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_HOT_DATA); in lookup_nat_in_journal() local
2949 struct f2fs_journal *journal = &curseg->sum_blk->journal; in lookup_nat_in_journal()
2965 struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_HOT_DATA); in nullify_nat_entry() local
2966 struct f2fs_journal *journal = &curseg->sum_blk->journal; in nullify_nat_entry()
3108 struct curseg_info *curseg = CURSEG_I(sbi, i); in write_checkpoint() local
3111 ret = dev_write_block(curseg->sum_blk, cp_blk_no++); in write_checkpoint()
3116 ssa_blk = GET_SUM_BLKADDR(sbi, curseg->segno); in write_checkpoint()
3117 ret = dev_write_block(curseg->sum_blk, ssa_blk); in write_checkpoint()
3150 struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_HOT_DATA); in build_nat_area_bitmap() local
3151 struct f2fs_journal *journal = &curseg->sum_blk->journal; in build_nat_area_bitmap()
3374 struct curseg_info *curseg; in find_fsync_inode() local
3383 curseg = CURSEG_I(sbi, CURSEG_WARM_NODE); in find_fsync_inode()
3384 blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); in find_fsync_inode()
3519 struct curseg_info *curseg; in traverse_dnodes() local
3525 curseg = CURSEG_I(sbi, CURSEG_WARM_NODE); in traverse_dnodes()
3526 blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); in traverse_dnodes()