Lines Matching refs:sum
286 unsigned int end = offset + len, sum = 0; in count_bits() local
290 ++sum; in count_bits()
292 return sum; in count_bits()
472 struct f2fs_summary *sum, unsigned int segno, int gc_type) in gc_node_segment() argument
482 entry = sum; in gc_node_segment()
559 static bool is_alive(struct f2fs_sb_info *sbi, struct f2fs_summary *sum, in is_alive() argument
567 nid = le32_to_cpu(sum->nid); in is_alive()
568 ofs_in_node = le16_to_cpu(sum->ofs_in_node); in is_alive()
576 if (sum->version != dni->version) { in is_alive()
610 struct f2fs_summary sum; in move_data_block() local
644 set_summary(&sum, dn.nid, dn.ofs_in_node, ni.version); in move_data_block()
651 &sum, CURSEG_COLD_DATA, NULL, false); in move_data_block()
701 __f2fs_replace_block(fio.sbi, &sum, newaddr, fio.old_blkaddr, in move_data_block()
773 static void gc_data_segment(struct f2fs_sb_info *sbi, struct f2fs_summary *sum, in gc_data_segment() argument
785 entry = sum; in gc_data_segment()
915 struct f2fs_summary_block *sum; in do_garbage_collect() local
948 sum = page_address(sum_page); in do_garbage_collect()
949 f2fs_bug_on(sbi, type != GET_SUM_TYPE((&sum->footer))); in do_garbage_collect()
959 gc_node_segment(sbi, sum->entries, segno, gc_type); in do_garbage_collect()
961 gc_data_segment(sbi, sum->entries, gc_list, segno, in do_garbage_collect()