Searched refs:ckpt (Results 1 – 8 of 8) sorted by relevance
| /OK3568_Linux_fs/kernel/fs/f2fs/ |
| H A D | checkpoint.c | 816 struct f2fs_checkpoint *ckpt) in f2fs_checkpoint_chksum() argument 818 unsigned int chksum_ofs = le32_to_cpu(ckpt->checksum_offset); in f2fs_checkpoint_chksum() 821 chksum = f2fs_crc32(sbi, ckpt, chksum_ofs); in f2fs_checkpoint_chksum() 824 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 …]
|
| H A D | node.h | 304 struct f2fs_checkpoint *ckpt = F2FS_CKPT(F2FS_P_SB(page)); in fill_node_footer_blkaddr() local 306 __u64 cp_ver = cur_cp_version(ckpt); in fill_node_footer_blkaddr() 308 if (__is_set_ckpt_flags(ckpt, CP_CRC_RECOVERY_FLAG)) in fill_node_footer_blkaddr() 309 cp_ver |= (cur_cp_crc(ckpt) << 32); in fill_node_footer_blkaddr() 317 struct f2fs_checkpoint *ckpt = F2FS_CKPT(F2FS_P_SB(page)); in is_recoverable_dnode() local 318 __u64 cp_ver = cur_cp_version(ckpt); in is_recoverable_dnode() 321 if (__is_set_ckpt_flags(ckpt, CP_NOCRC_RECOVERY_FLAG)) in is_recoverable_dnode() 324 if (__is_set_ckpt_flags(ckpt, CP_CRC_RECOVERY_FLAG)) in is_recoverable_dnode() 325 cp_ver |= (cur_cp_crc(ckpt) << 32); in is_recoverable_dnode()
|
| H A D | super.c | 1523 kvfree(sbi->ckpt); in f2fs_put_super() 3284 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); in f2fs_sanity_check_ckpt() local 3303 fsmeta += le32_to_cpu(ckpt->rsvd_segment_count); in f2fs_sanity_check_ckpt() 3309 ovp_segments = le32_to_cpu(ckpt->overprov_segment_count); in f2fs_sanity_check_ckpt() 3310 reserved_segments = le32_to_cpu(ckpt->rsvd_segment_count); in f2fs_sanity_check_ckpt() 3318 user_block_count = le64_to_cpu(ckpt->user_block_count); in f2fs_sanity_check_ckpt() 3329 valid_user_blocks = le64_to_cpu(ckpt->valid_block_count); in f2fs_sanity_check_ckpt() 3336 valid_node_count = le32_to_cpu(ckpt->valid_node_count); in f2fs_sanity_check_ckpt() 3348 if (le32_to_cpu(ckpt->cur_node_segno[i]) >= main_segs || in f2fs_sanity_check_ckpt() 3349 le16_to_cpu(ckpt->cur_node_blkoff[i]) >= blocks_per_seg) in f2fs_sanity_check_ckpt() [all …]
|
| H A D | segment.c | 2397 if (sbi->ckpt->alloc_type[i] == SSR) in f2fs_npages_for_summary_flush() 3808 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); in read_compacted_summaries() local 3837 segno = le32_to_cpu(ckpt->cur_data_segno[i]); in read_compacted_summaries() 3838 blk_off = le16_to_cpu(ckpt->cur_data_blkoff[i]); in read_compacted_summaries() 3841 seg_i->alloc_type = ckpt->alloc_type[i]; in read_compacted_summaries() 3873 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); in read_normal_summaries() local 3884 segno = le32_to_cpu(ckpt->cur_data_segno[type]); in read_normal_summaries() 3885 blk_off = le16_to_cpu(ckpt->cur_data_blkoff[type - in read_normal_summaries() 3892 segno = le32_to_cpu(ckpt->cur_node_segno[type - in read_normal_summaries() 3894 blk_off = le16_to_cpu(ckpt->cur_node_blkoff[type - in read_normal_summaries() [all …]
|
| H A D | f2fs.h | 1597 struct f2fs_checkpoint *ckpt; /* raw checkpoint pointer */ member 1960 return (struct f2fs_checkpoint *)(sbi->ckpt); in F2FS_CKPT() 2443 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); in __bitmap_size() local 2447 return le32_to_cpu(ckpt->nat_ver_bitmap_bytesize); in __bitmap_size() 2449 return le32_to_cpu(ckpt->sit_ver_bitmap_bytesize); in __bitmap_size() 2461 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); in __bitmap_ptr() local 2462 void *tmp_ptr = &ckpt->sit_nat_version_bitmap; in __bitmap_ptr() 2467 le32_to_cpu(ckpt->nat_ver_bitmap_bytesize) : 0; in __bitmap_ptr() 2477 return &ckpt->sit_nat_version_bitmap; in __bitmap_ptr() 2479 return (unsigned char *)ckpt + F2FS_BLKSIZE; in __bitmap_ptr() [all …]
|
| H A D | node.c | 3078 struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); in __get_nat_bitmaps() local 3082 __u64 cp_ver = cur_cp_version(ckpt); in __get_nat_bitmaps() 3108 cp_ver |= (cur_cp_crc(ckpt) << 32); in __get_nat_bitmaps() 3190 nm_i->next_scan_nid = le32_to_cpu(sbi->ckpt->next_free_nid); in init_node_manager()
|
| H A D | debug.c | 247 si->base_mem += sizeof(*sbi->ckpt); in update_mem_info()
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-networking/recipes-daemons/opensaf/opensaf/ |
| H A D | 0001-Fix-build-with-fno-common.patch | 12 src/ckpt/agent/cpa_cb.h | 2 +- 13 src/ckpt/ckptd/cpd_init.h | 2 +- 29 diff --git a/src/ckpt/agent/cpa_cb.h b/src/ckpt/agent/cpa_cb.h 31 --- a/src/ckpt/agent/cpa_cb.h 32 +++ b/src/ckpt/agent/cpa_cb.h 42 diff --git a/src/ckpt/ckptd/cpd_init.h b/src/ckpt/ckptd/cpd_init.h 44 --- a/src/ckpt/ckptd/cpd_init.h 45 +++ b/src/ckpt/ckptd/cpd_init.h
|