Lines Matching refs:sum_blk
1297 struct f2fs_summary_block *sum = curseg->sum_blk; in f2fs_early_init_nid_bitmap()
1482 struct f2fs_journal *journal = &curseg->sum_blk->journal; in check_nat_bits()
1683 sum_footer = &(curseg->sum_blk->footer); in reset_curseg()
1711 memcpy(&curseg->sum_blk->journal.n_nats, kaddr, SUM_JOURNAL_SIZE); in read_compacted_summaries()
1714 memcpy(&curseg->sum_blk->journal.n_sits, kaddr + SUM_JOURNAL_SIZE, in read_compacted_summaries()
1734 curseg->sum_blk->entries[j] = *s; in read_compacted_summaries()
1749 unsigned int segno, struct f2fs_summary_block *sum_blk) in restore_node_summary() argument
1762 sum_entry = &sum_blk->entries[0]; in restore_node_summary()
1776 struct f2fs_summary_block *sum_blk; in read_normal_summaries() local
1797 sum_blk = (struct f2fs_summary_block *)malloc(PAGE_SIZE); in read_normal_summaries()
1798 ASSERT(sum_blk); in read_normal_summaries()
1800 ret = dev_read_block(sum_blk, blk_addr); in read_normal_summaries()
1804 restore_node_summary(sbi, segno, sum_blk); in read_normal_summaries()
1807 memcpy(curseg->sum_blk, sum_blk, PAGE_CACHE_SIZE); in read_normal_summaries()
1809 free(sum_blk); in read_normal_summaries()
1815 struct f2fs_summary_block *sum_blk; in update_sum_entry() local
1825 sum_blk = get_sum_block(sbi, segno, &type); in update_sum_entry()
1826 memcpy(&sum_blk->entries[offset], sum, sizeof(*sum)); in update_sum_entry()
1827 sum_blk->footer.entry_type = IS_NODESEG(se->type) ? SUM_TYPE_NODE : in update_sum_entry()
1831 ret = dev_write_block(sum_blk, GET_SUM_BLKADDR(sbi, segno)); in update_sum_entry()
1836 free(sum_blk); in update_sum_entry()
1869 array[i].sum_blk = malloc(PAGE_CACHE_SIZE); in build_curseg()
1870 if (!array[i].sum_blk) { in build_curseg()
1897 free(array[i].sum_blk); in build_curseg()
2028 struct f2fs_summary_block *sum_blk; in get_sum_block() local
2039 if (!IS_SUM_NODE_SEG(curseg->sum_blk->footer)) { in get_sum_block()
2047 return curseg->sum_blk; in get_sum_block()
2054 if (IS_SUM_NODE_SEG(curseg->sum_blk->footer)) { in get_sum_block()
2062 return curseg->sum_blk; in get_sum_block()
2066 sum_blk = calloc(BLOCK_SZ, 1); in get_sum_block()
2067 ASSERT(sum_blk); in get_sum_block()
2069 ret = dev_read_block(sum_blk, ssa_blk); in get_sum_block()
2072 if (IS_SUM_NODE_SEG(sum_blk->footer)) in get_sum_block()
2074 else if (IS_SUM_DATA_SEG(sum_blk->footer)) in get_sum_block()
2077 return sum_blk; in get_sum_block()
2083 struct f2fs_summary_block *sum_blk; in get_sum_entry() local
2090 sum_blk = get_sum_block(sbi, segno, &type); in get_sum_entry()
2091 memcpy(sum_entry, &(sum_blk->entries[offset]), in get_sum_entry()
2095 free(sum_blk); in get_sum_entry()
2224 struct f2fs_journal *journal = &curseg->sum_blk->journal; in build_sit_entries()
2384 struct f2fs_summary_block *sum = curseg->sum_blk; in rewrite_sit_area_bitmap()
2431 struct f2fs_journal *journal = &curseg->sum_blk->journal; in flush_sit_journal_entries()
2465 struct f2fs_journal *journal = &curseg->sum_blk->journal; in flush_nat_journal_entries()
2704 ret = dev_write_block(curseg->sum_blk, ssa_blk); in move_one_curseg_info()
2722 memcpy(curseg->sum_blk, &buf, SUM_ENTRIES_SIZE); in move_one_curseg_info()
2752 CURSEG_I(sbi, i)->sum_blk->journal.n_nats = 0; in zero_journal_entries()
2780 struct f2fs_journal *journal = &curseg->sum_blk->journal; in lookup_nat_in_journal()
2797 struct f2fs_journal *journal = &curseg->sum_blk->journal; in nullify_nat_entry()
2942 ret = dev_write_block(curseg->sum_blk, cp_blk_no++); in write_checkpoint()
2947 ret = dev_write_block(curseg->sum_blk, ssa_blk); in write_checkpoint()
2980 struct f2fs_journal *journal = &curseg->sum_blk->journal; in build_nat_area_bitmap()
3537 free(sm_i->curseg_array[i].sum_blk); in f2fs_do_umount()