Lines Matching refs:sum_blk
1417 struct f2fs_summary_block *sum = curseg->sum_blk; in f2fs_early_init_nid_bitmap()
1602 struct f2fs_journal *journal = &curseg->sum_blk->journal; in check_nat_bits()
1803 sum_footer = &(curseg->sum_blk->footer); in reset_curseg()
1831 memcpy(&curseg->sum_blk->journal.n_nats, kaddr, SUM_JOURNAL_SIZE); in read_compacted_summaries()
1834 memcpy(&curseg->sum_blk->journal.n_sits, kaddr + SUM_JOURNAL_SIZE, in read_compacted_summaries()
1854 curseg->sum_blk->entries[j] = *s; in read_compacted_summaries()
1869 unsigned int segno, struct f2fs_summary_block *sum_blk) in restore_node_summary() argument
1882 sum_entry = &sum_blk->entries[0]; in restore_node_summary()
1896 struct f2fs_summary_block *sum_blk; in read_normal_summaries() local
1917 sum_blk = (struct f2fs_summary_block *)malloc(PAGE_SIZE); in read_normal_summaries()
1918 ASSERT(sum_blk); in read_normal_summaries()
1920 ret = dev_read_block(sum_blk, blk_addr); in read_normal_summaries()
1924 restore_node_summary(sbi, segno, sum_blk); in read_normal_summaries()
1927 memcpy(curseg->sum_blk, sum_blk, PAGE_CACHE_SIZE); in read_normal_summaries()
1929 free(sum_blk); in read_normal_summaries()
1936 struct f2fs_summary_block *sum_blk; in update_sum_entry() local
1949 sum_blk = get_sum_block(sbi, segno, &type); in update_sum_entry()
1950 memcpy(&sum_blk->entries[offset], sum, sizeof(*sum)); in update_sum_entry()
1951 sum_blk->footer.entry_type = IS_NODESEG(se->type) ? SUM_TYPE_NODE : in update_sum_entry()
1955 ret = dev_write_block(sum_blk, GET_SUM_BLKADDR(sbi, segno)); in update_sum_entry()
1960 free(sum_blk); in update_sum_entry()
1993 array[i].sum_blk = calloc(PAGE_CACHE_SIZE, 1); in build_curseg()
1994 if (!array[i].sum_blk) { in build_curseg()
2021 free(array[i].sum_blk); in build_curseg()
2152 struct f2fs_summary_block *sum_blk; in get_sum_block() local
2163 if (!IS_SUM_NODE_SEG(curseg->sum_blk->footer)) { in get_sum_block()
2171 return curseg->sum_blk; in get_sum_block()
2178 if (IS_SUM_NODE_SEG(curseg->sum_blk->footer)) { in get_sum_block()
2186 return curseg->sum_blk; in get_sum_block()
2190 sum_blk = calloc(BLOCK_SZ, 1); in get_sum_block()
2191 ASSERT(sum_blk); in get_sum_block()
2193 ret = dev_read_block(sum_blk, ssa_blk); in get_sum_block()
2196 if (IS_SUM_NODE_SEG(sum_blk->footer)) in get_sum_block()
2198 else if (IS_SUM_DATA_SEG(sum_blk->footer)) in get_sum_block()
2201 return sum_blk; in get_sum_block()
2207 struct f2fs_summary_block *sum_blk; in get_sum_entry() local
2214 sum_blk = get_sum_block(sbi, segno, &type); in get_sum_entry()
2215 memcpy(sum_entry, &(sum_blk->entries[offset]), in get_sum_entry()
2219 free(sum_blk); in get_sum_entry()
2348 struct f2fs_journal *journal = &curseg->sum_blk->journal; in build_sit_entries()
2508 struct f2fs_summary_block *sum = curseg->sum_blk; in rewrite_sit_area_bitmap()
2555 struct f2fs_journal *journal = &curseg->sum_blk->journal; in flush_sit_journal_entries()
2589 struct f2fs_journal *journal = &curseg->sum_blk->journal; in flush_nat_journal_entries()
2834 ret = dev_write_block(curseg->sum_blk, ssa_blk); in move_one_curseg_info()
2852 memcpy(curseg->sum_blk, &buf, SUM_ENTRIES_SIZE); in move_one_curseg_info()
2882 CURSEG_I(sbi, i)->sum_blk->journal.n_nats = 0; in zero_journal_entries()
2910 struct f2fs_journal *journal = &curseg->sum_blk->journal; in lookup_nat_in_journal()
2927 struct f2fs_journal *journal = &curseg->sum_blk->journal; in nullify_nat_entry()
3072 ret = dev_write_block(curseg->sum_blk, cp_blk_no++); in write_checkpoint()
3078 ret = dev_write_block(curseg->sum_blk, ssa_blk); in write_checkpoint()
3112 struct f2fs_journal *journal = &curseg->sum_blk->journal; in build_nat_area_bitmap()
3671 free(sm_i->curseg_array[i].sum_blk); in f2fs_do_umount()