Lines Matching refs:cp_block
846 struct f2fs_checkpoint **cp_block, struct page **cp_page, in get_checkpoint_version() argument
856 *cp_block = (struct f2fs_checkpoint *)page_address(*cp_page); in get_checkpoint_version()
858 crc_offset = le32_to_cpu((*cp_block)->checksum_offset); in get_checkpoint_version()
866 crc = f2fs_checkpoint_chksum(sbi, *cp_block); in get_checkpoint_version()
867 if (crc != cur_cp_crc(*cp_block)) { in get_checkpoint_version()
873 *version = cur_cp_version(*cp_block); in get_checkpoint_version()
881 struct f2fs_checkpoint *cp_block = NULL; in validate_checkpoint() local
886 err = get_checkpoint_version(sbi, cp_addr, &cp_block, in validate_checkpoint()
891 cp_blocks = le32_to_cpu(cp_block->cp_pack_total_block_count); in validate_checkpoint()
895 le32_to_cpu(cp_block->cp_pack_total_block_count)); in validate_checkpoint()
901 err = get_checkpoint_version(sbi, cp_addr, &cp_block, in validate_checkpoint()
920 struct f2fs_checkpoint *cp_block; in f2fs_get_valid_checkpoint() local
961 cp_block = (struct f2fs_checkpoint *)page_address(cur_page); in f2fs_get_valid_checkpoint()
962 memcpy(sbi->ckpt, cp_block, blk_size); in f2fs_get_valid_checkpoint()