Lines Matching refs:ckp
979 struct f2fs_checkpoint *ckp = F2FS_CKPT(sbi);
985 ckp->ckpt_flags = cpu_to_le32(CP_UMOUNT_FLAG);
986 ckp->cp_pack_total_block_count =
988 ckp->cp_pack_start_sum = cpu_to_le32(1 +
991 ckp->free_segment_count = cpu_to_le32(fsck->chk.free_segs);
992 ckp->valid_block_count = cpu_to_le32(fsck->chk.valid_blk_cnt);
993 ckp->valid_node_count = cpu_to_le32(fsck->chk.valid_node_cnt);
994 ckp->valid_inode_count = cpu_to_le32(fsck->chk.valid_inode_cnt);
996 crc = f2fs_cal_crc32(F2FS_SUPER_MAGIC, ckp, CHECKSUM_OFFSET);
997 *((__le32 *)((unsigned char *)ckp + CHECKSUM_OFFSET)) =
1004 ret = dev_write_block(ckp, cp_blk_no++);
1008 ret = dev_write_block(((unsigned char *)ckp) + i * F2FS_BLKSIZE,
1020 ret = dev_write_block(ckp, cp_blk_no++);