Lines Matching refs:new_cp
453 struct f2fs_checkpoint *new_cp; in rebuild_checkpoint() local
464 new_cp = calloc(new_cp_blks * BLOCK_SZ, 1); in rebuild_checkpoint()
465 ASSERT(new_cp); in rebuild_checkpoint()
519 memcpy(new_cp, cp, (unsigned char *)cp->sit_nat_version_bitmap - in rebuild_checkpoint()
521 new_cp->checkpoint_ver = cpu_to_le64(cp_ver + 1); in rebuild_checkpoint()
523 crc = f2fs_cal_crc32(F2FS_SUPER_MAGIC, new_cp, CP_CHKSUM_OFFSET); in rebuild_checkpoint()
524 *((__le32 *)((unsigned char *)new_cp + CP_CHKSUM_OFFSET)) = in rebuild_checkpoint()
535 ret = dev_write_block(new_cp, new_cp_blk_no++); in rebuild_checkpoint()
563 ret = dev_write_block(new_cp, new_cp_blk_no++); in rebuild_checkpoint()
568 write_nat_bits(sbi, new_sb, new_cp, sbi->cur_cp == 1 ? 2 : 1); in rebuild_checkpoint()
576 free(new_cp); in rebuild_checkpoint()