Lines Matching refs:new_cp
454 struct f2fs_checkpoint *new_cp; in rebuild_checkpoint() local
465 new_cp = calloc(new_cp_blks * BLOCK_SZ, 1); in rebuild_checkpoint()
466 ASSERT(new_cp); in rebuild_checkpoint()
528 memcpy(new_cp, cp, (unsigned char *)cp->sit_nat_version_bitmap - in rebuild_checkpoint()
531 memcpy((void *)new_cp + CP_BITMAP_OFFSET, in rebuild_checkpoint()
535 new_cp->checkpoint_ver = cpu_to_le64(cp_ver + 1); in rebuild_checkpoint()
537 crc = f2fs_checkpoint_chksum(new_cp); in rebuild_checkpoint()
538 *((__le32 *)((unsigned char *)new_cp + get_cp(checksum_offset))) = in rebuild_checkpoint()
549 ret = dev_write_block(new_cp, new_cp_blk_no++); in rebuild_checkpoint()
577 ret = dev_write_block(new_cp, new_cp_blk_no++); in rebuild_checkpoint()
582 write_nat_bits(sbi, new_sb, new_cp, sbi->cur_cp == 1 ? 2 : 1); in rebuild_checkpoint()
590 free(new_cp); in rebuild_checkpoint()