Searched refs:ckpt (Results 1 – 7 of 7) sorted by relevance
/Linux-v5.15/fs/f2fs/ |
D | checkpoint.c | 818 struct f2fs_checkpoint *ckpt) in f2fs_checkpoint_chksum() argument 820 unsigned int chksum_ofs = le32_to_cpu(ckpt->checksum_offset); in f2fs_checkpoint_chksum() 823 chksum = f2fs_crc32(sbi, ckpt, chksum_ofs); in f2fs_checkpoint_chksum() 826 chksum = f2fs_chksum(sbi, chksum, (__u8 *)ckpt + chksum_ofs, in f2fs_checkpoint_chksum() 916 sbi->ckpt = f2fs_kvzalloc(sbi, array_size(blk_size, cp_blks), in f2fs_get_valid_checkpoint() 918 if (!sbi->ckpt) in f2fs_get_valid_checkpoint() 947 memcpy(sbi->ckpt, cp_block, blk_size); in f2fs_get_valid_checkpoint() 969 unsigned char *ckpt = (unsigned char *)sbi->ckpt; in f2fs_get_valid_checkpoint() local 977 memcpy(ckpt + i * blk_size, sit_bitmap_ptr, blk_size); in f2fs_get_valid_checkpoint() 989 kvfree(sbi->ckpt); in f2fs_get_valid_checkpoint() [all …]
|
D | node.h | 303 struct f2fs_checkpoint *ckpt = F2FS_CKPT(F2FS_P_SB(page)); in fill_node_footer_blkaddr() local 305 __u64 cp_ver = cur_cp_version(ckpt); in fill_node_footer_blkaddr() 307 if (__is_set_ckpt_flags(ckpt, CP_CRC_RECOVERY_FLAG)) in fill_node_footer_blkaddr() 308 cp_ver |= (cur_cp_crc(ckpt) << 32); in fill_node_footer_blkaddr() 316 struct f2fs_checkpoint *ckpt = F2FS_CKPT(F2FS_P_SB(page)); in is_recoverable_dnode() local 317 __u64 cp_ver = cur_cp_version(ckpt); in is_recoverable_dnode() 320 if (__is_set_ckpt_flags(ckpt, CP_NOCRC_RECOVERY_FLAG)) in is_recoverable_dnode() 323 if (__is_set_ckpt_flags(ckpt, CP_CRC_RECOVERY_FLAG)) in is_recoverable_dnode() 324 cp_ver |= (cur_cp_crc(ckpt) << 32); in is_recoverable_dnode()
|
D | super.c | 1563 kvfree(sbi->ckpt); in f2fs_put_super() 3341 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); in f2fs_sanity_check_ckpt() local 3360 fsmeta += le32_to_cpu(ckpt->rsvd_segment_count); in f2fs_sanity_check_ckpt() 3366 ovp_segments = le32_to_cpu(ckpt->overprov_segment_count); in f2fs_sanity_check_ckpt() 3367 reserved_segments = le32_to_cpu(ckpt->rsvd_segment_count); in f2fs_sanity_check_ckpt() 3375 user_block_count = le64_to_cpu(ckpt->user_block_count); in f2fs_sanity_check_ckpt() 3386 valid_user_blocks = le64_to_cpu(ckpt->valid_block_count); in f2fs_sanity_check_ckpt() 3393 valid_node_count = le32_to_cpu(ckpt->valid_node_count); in f2fs_sanity_check_ckpt() 3405 if (le32_to_cpu(ckpt->cur_node_segno[i]) >= main_segs || in f2fs_sanity_check_ckpt() 3406 le16_to_cpu(ckpt->cur_node_blkoff[i]) >= blocks_per_seg) in f2fs_sanity_check_ckpt() [all …]
|
D | segment.c | 2428 if (sbi->ckpt->alloc_type[i] == SSR) in f2fs_npages_for_summary_flush() 3801 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); in read_compacted_summaries() local 3830 segno = le32_to_cpu(ckpt->cur_data_segno[i]); in read_compacted_summaries() 3831 blk_off = le16_to_cpu(ckpt->cur_data_blkoff[i]); in read_compacted_summaries() 3834 seg_i->alloc_type = ckpt->alloc_type[i]; in read_compacted_summaries() 3866 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); in read_normal_summaries() local 3877 segno = le32_to_cpu(ckpt->cur_data_segno[type]); in read_normal_summaries() 3878 blk_off = le16_to_cpu(ckpt->cur_data_blkoff[type - in read_normal_summaries() 3885 segno = le32_to_cpu(ckpt->cur_node_segno[type - in read_normal_summaries() 3887 blk_off = le16_to_cpu(ckpt->cur_node_blkoff[type - in read_normal_summaries() [all …]
|
D | f2fs.h | 1580 struct f2fs_checkpoint *ckpt; /* raw checkpoint pointer */ member 1946 return (struct f2fs_checkpoint *)(sbi->ckpt); in F2FS_CKPT() 2330 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); in __bitmap_size() local 2334 return le32_to_cpu(ckpt->nat_ver_bitmap_bytesize); in __bitmap_size() 2336 return le32_to_cpu(ckpt->sit_ver_bitmap_bytesize); in __bitmap_size() 2348 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); in __bitmap_ptr() local 2349 void *tmp_ptr = &ckpt->sit_nat_version_bitmap; in __bitmap_ptr() 2354 le32_to_cpu(ckpt->nat_ver_bitmap_bytesize) : 0; in __bitmap_ptr() 2364 return &ckpt->sit_nat_version_bitmap; in __bitmap_ptr() 2366 return (unsigned char *)ckpt + F2FS_BLKSIZE; in __bitmap_ptr() [all …]
|
D | node.c | 3113 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); in __get_nat_bitmaps() local 3117 __u64 cp_ver = cur_cp_version(ckpt); in __get_nat_bitmaps() 3146 cp_ver |= (cur_cp_crc(ckpt) << 32); in __get_nat_bitmaps() 3227 nm_i->next_scan_nid = le32_to_cpu(sbi->ckpt->next_free_nid); in init_node_manager()
|
D | debug.c | 236 si->base_mem += sizeof(*sbi->ckpt); in update_mem_info()
|