Home
last modified time | relevance | path

Searched refs:ckpt (Results 1 – 4 of 4) sorted by relevance

/external/f2fs-tools/fsck/
Dmount.c382 sbi->ckpt = malloc(cp_blks * blk_size); in get_valid_checkpoint()
383 if (!sbi->ckpt) in get_valid_checkpoint()
416 memcpy(sbi->ckpt, cur_page, blk_size); in get_valid_checkpoint()
428 unsigned char *ckpt = (unsigned char *)sbi->ckpt; in get_valid_checkpoint() local
431 memcpy(ckpt + i * blk_size, cur_page, blk_size); in get_valid_checkpoint()
439 free(sbi->ckpt); in get_valid_checkpoint()
447 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); in sanity_check_ckpt() local
453 fsmeta += le32_to_cpu(ckpt->rsvd_segment_count); in sanity_check_ckpt()
477 nm_i->init_scan_nid = le32_to_cpu(sbi->ckpt->next_free_nid); in init_node_manager()
478 nm_i->next_scan_nid = le32_to_cpu(sbi->ckpt->next_free_nid); in init_node_manager()
[all …]
Df2fs.h132 struct f2fs_checkpoint *ckpt; member
172 return (struct f2fs_checkpoint *)(sbi->ckpt); in F2FS_CKPT()
208 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); in __bitmap_size() local
212 return le32_to_cpu(ckpt->nat_ver_bitmap_bytesize); in __bitmap_size()
214 return le32_to_cpu(ckpt->sit_ver_bitmap_bytesize); in __bitmap_size()
221 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); in __bitmap_ptr() local
225 return &ckpt->sit_nat_version_bitmap; in __bitmap_ptr()
227 return ((char *)ckpt + F2FS_BLKSIZE); in __bitmap_ptr()
230 le32_to_cpu(ckpt->sit_ver_bitmap_bytesize) : 0; in __bitmap_ptr()
231 return &ckpt->sit_nat_version_bitmap + offset; in __bitmap_ptr()
[all …]
Dmain.c160 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); in do_dump() local
161 u32 flag = le32_to_cpu(ckpt->ckpt_flags); in do_dump()
222 free(sbi->ckpt); in main()
Dfsck.c906 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); in fsck_chk_orphan_node() local
908 if (!is_set_ckpt_flags(ckpt, CP_ORPHAN_PRESENT_FLAG)) in fsck_chk_orphan_node()