Searched refs:ckpt (Results 1 - 8 of 8) sorted by relevance

/linux-4.1.27/fs/f2fs/
H A Dcheckpoint.c621 sbi->ckpt = kzalloc(cp_blks * blk_size, GFP_KERNEL); get_valid_checkpoint()
622 if (!sbi->ckpt) get_valid_checkpoint()
650 memcpy(sbi->ckpt, cp_block, blk_size); get_valid_checkpoint()
661 unsigned char *ckpt = (unsigned char *)sbi->ckpt; get_valid_checkpoint() local
665 memcpy(ckpt + i * blk_size, sit_bitmap_ptr, blk_size); get_valid_checkpoint()
674 kfree(sbi->ckpt); get_valid_checkpoint()
876 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); do_checkpoint() local
908 ckpt->elapsed_time = cpu_to_le64(get_mtime(sbi)); do_checkpoint()
909 ckpt->valid_block_count = cpu_to_le64(valid_user_blocks(sbi)); do_checkpoint()
910 ckpt->free_segment_count = cpu_to_le32(free_segments(sbi)); do_checkpoint()
912 ckpt->cur_node_segno[i] = do_checkpoint()
914 ckpt->cur_node_blkoff[i] = do_checkpoint()
916 ckpt->alloc_type[i + CURSEG_HOT_NODE] = do_checkpoint()
920 ckpt->cur_data_segno[i] = do_checkpoint()
922 ckpt->cur_data_blkoff[i] = do_checkpoint()
924 ckpt->alloc_type[i + CURSEG_HOT_DATA] = do_checkpoint()
928 ckpt->valid_node_count = cpu_to_le32(valid_node_count(sbi)); do_checkpoint()
929 ckpt->valid_inode_count = cpu_to_le32(valid_inode_count(sbi)); do_checkpoint()
930 ckpt->next_free_nid = cpu_to_le32(last_nid); do_checkpoint()
935 set_ckpt_flags(ckpt, CP_COMPACT_SUM_FLAG); do_checkpoint()
937 clear_ckpt_flags(ckpt, CP_COMPACT_SUM_FLAG); do_checkpoint()
940 ckpt->cp_pack_start_sum = cpu_to_le32(1 + cp_payload_blks + do_checkpoint()
944 ckpt->cp_pack_total_block_count = cpu_to_le32(F2FS_CP_PACKS+ do_checkpoint()
948 ckpt->cp_pack_total_block_count = cpu_to_le32(F2FS_CP_PACKS + do_checkpoint()
953 set_ckpt_flags(ckpt, CP_UMOUNT_FLAG); do_checkpoint()
955 clear_ckpt_flags(ckpt, CP_UMOUNT_FLAG); do_checkpoint()
958 set_ckpt_flags(ckpt, CP_FASTBOOT_FLAG); do_checkpoint()
960 clear_ckpt_flags(ckpt, CP_FASTBOOT_FLAG); do_checkpoint()
963 set_ckpt_flags(ckpt, CP_ORPHAN_PRESENT_FLAG); do_checkpoint()
965 clear_ckpt_flags(ckpt, CP_ORPHAN_PRESENT_FLAG); do_checkpoint()
968 set_ckpt_flags(ckpt, CP_FSCK_FLAG); do_checkpoint()
974 crc32 = f2fs_crc32(ckpt, le32_to_cpu(ckpt->checksum_offset)); do_checkpoint()
975 *((__le32 *)((unsigned char *)ckpt + do_checkpoint()
976 le32_to_cpu(ckpt->checksum_offset))) do_checkpoint()
984 memcpy(kaddr, ckpt, F2FS_BLKSIZE); do_checkpoint()
991 memcpy(kaddr, (char *)ckpt + i * F2FS_BLKSIZE, F2FS_BLKSIZE); do_checkpoint()
1011 memcpy(kaddr, ckpt, F2FS_BLKSIZE); do_checkpoint()
1048 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); write_checkpoint() local
1077 ckpt_ver = cur_cp_version(ckpt); write_checkpoint()
1078 ckpt->checkpoint_ver = cpu_to_le64(++ckpt_ver); write_checkpoint()
H A Dsegment.c685 /* update total number of valid blocks to be written in ckpt area */ update_sit_entry()
743 if (sbi->ckpt->alloc_type[i] == SSR) npages_for_summary_flush()
1342 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); read_compacted_summaries() local
1370 segno = le32_to_cpu(ckpt->cur_data_segno[i]); read_compacted_summaries()
1371 blk_off = le16_to_cpu(ckpt->cur_data_blkoff[i]); read_compacted_summaries()
1374 seg_i->alloc_type = ckpt->alloc_type[i]; read_compacted_summaries()
1403 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); read_normal_summaries() local
1413 segno = le32_to_cpu(ckpt->cur_data_segno[type]); read_normal_summaries()
1414 blk_off = le16_to_cpu(ckpt->cur_data_blkoff[type - read_normal_summaries()
1421 segno = le32_to_cpu(ckpt->cur_node_segno[type - read_normal_summaries()
1423 blk_off = le16_to_cpu(ckpt->cur_node_blkoff[type - read_normal_summaries()
1460 curseg->alloc_type = ckpt->alloc_type[type]; read_normal_summaries()
1525 if (sbi->ckpt->alloc_type[i] == SSR) write_compacted_summaries()
1833 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); build_sit_info() local
1892 sit_i->written_valid_blocks = le64_to_cpu(ckpt->valid_block_count); build_sit_info()
1897 sit_i->elapsed_time = le64_to_cpu(sbi->ckpt->elapsed_time); build_sit_info()
2119 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); build_segment_manager() local
2132 sm_info->reserved_segments = le32_to_cpu(ckpt->rsvd_segment_count); build_segment_manager()
2133 sm_info->ovp_segments = le32_to_cpu(ckpt->overprov_segment_count); build_segment_manager()
H A Dsuper.c497 kfree(sbi->ckpt); f2fs_put_super()
876 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); sanity_check_ckpt() local
882 fsmeta += le32_to_cpu(ckpt->rsvd_segment_count); sanity_check_ckpt()
1079 le32_to_cpu(sbi->ckpt->valid_node_count); f2fs_fill_super()
1081 le32_to_cpu(sbi->ckpt->valid_inode_count); f2fs_fill_super()
1082 sbi->user_block_count = le64_to_cpu(sbi->ckpt->user_block_count); f2fs_fill_super()
1084 le64_to_cpu(sbi->ckpt->valid_block_count); f2fs_fill_super()
1173 !is_set_ckpt_flags(sbi->ckpt, CP_UMOUNT_FLAG)) { f2fs_fill_super()
1221 kfree(sbi->ckpt); f2fs_fill_super()
H A Df2fs.h623 struct f2fs_checkpoint *ckpt; /* raw checkpoint pointer */ member in struct:f2fs_sb_info
741 return (struct f2fs_checkpoint *)(sbi->ckpt); F2FS_CKPT()
986 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); __bitmap_size() local
990 return le32_to_cpu(ckpt->nat_ver_bitmap_bytesize); __bitmap_size()
992 return le32_to_cpu(ckpt->sit_ver_bitmap_bytesize); __bitmap_size()
1004 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); __bitmap_ptr() local
1009 return &ckpt->sit_nat_version_bitmap; __bitmap_ptr()
1011 return (unsigned char *)ckpt + F2FS_BLKSIZE; __bitmap_ptr()
1014 le32_to_cpu(ckpt->sit_ver_bitmap_bytesize) : 0; __bitmap_ptr()
1015 return &ckpt->sit_nat_version_bitmap + offset; __bitmap_ptr()
1022 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); __start_cp_addr() local
1023 unsigned long long ckpt_version = cur_cp_version(ckpt); __start_cp_addr()
1401 return is_set_ckpt_flags(sbi->ckpt, CP_ERROR_FLAG); f2fs_cp_error()
1406 set_ckpt_flags(sbi->ckpt, CP_ERROR_FLAG); f2fs_stop_checkpoint()
H A Dnode.h241 struct f2fs_checkpoint *ckpt = F2FS_CKPT(F2FS_P_SB(page)); fill_node_footer_blkaddr() local
244 rn->footer.cp_ver = ckpt->checkpoint_ver; fill_node_footer_blkaddr()
H A Ddebug.c137 si->base_mem += sizeof(*sbi->ckpt); update_mem_info()
H A Drecovery.c563 set_ckpt_flags(sbi->ckpt, CP_ERROR_FLAG); recover_fsync_data()
H A Dnode.c1966 nm_i->next_scan_nid = le32_to_cpu(sbi->ckpt->next_free_nid); init_node_manager()

Completed in 183 milliseconds