Searched refs:get_cp (Results 1 – 5 of 5) sorted by relevance
/third_party/f2fs-tools/fsck/ |
D | resize.c | 455 unsigned long long cp_ver = get_cp(checkpoint_ver); in rebuild_checkpoint() 476 get_cp(rsvd_segment_count)) * in rebuild_checkpoint() 480 if (get_cp(overprov_segment_count) < get_cp(rsvd_segment_count)) in rebuild_checkpoint() 481 set_cp(overprov_segment_count, get_cp(rsvd_segment_count)); in rebuild_checkpoint() 483 set_cp(overprov_segment_count, get_cp(overprov_segment_count) + in rebuild_checkpoint() 488 get_cp(overprov_segment_count), in rebuild_checkpoint() 497 get_cp(overprov_segment_count)) * c.blks_per_seg)); in rebuild_checkpoint() 527 flags = update_nat_bits_flags(new_sb, cp, get_cp(ckpt_flags)); in rebuild_checkpoint() 550 *((__le32 *)((unsigned char *)new_cp + get_cp(checksum_offset))) = in rebuild_checkpoint() 621 if (get_cp(valid_block_count) > user_block_count) in f2fs_resize_check()
|
D | mount.c | 1164 unsigned int chksum_offset = get_cp(checksum_offset); in verify_checksum_chksum() 1214 if (get_cp(cp_pack_total_block_count) > sbi->blocks_per_seg) in validate_checkpoint() 1217 pre_version = get_cp(checkpoint_ver); in validate_checkpoint() 1220 cp_addr += get_cp(cp_pack_total_block_count) - 1; in validate_checkpoint() 1226 cur_version = get_cp(checkpoint_ver); in validate_checkpoint() 1373 unsigned int flag = get_cp(ckpt_flags); in sanity_check_ckpt() 1390 fsmeta += get_cp(rsvd_segment_count); in sanity_check_ckpt() 1396 ovp_segments = get_cp(overprov_segment_count); in sanity_check_ckpt() 1397 reserved_segments = get_cp(rsvd_segment_count); in sanity_check_ckpt() 1406 user_block_count = get_cp(user_block_count); in sanity_check_ckpt() [all …]
|
D | fsck.c | 2178 if (get_cp(ckpt_flags) & CP_LARGE_NAT_BITMAP_FLAG) { in fsck_chk_checkpoint() 2179 if (get_cp(checksum_offset) != CP_MIN_CHKSUM_OFFSET) { in fsck_chk_checkpoint() 2181 "chksum_offset:%u", get_cp(checksum_offset)); in fsck_chk_checkpoint() 2359 *((__le32 *)((unsigned char *)cp + get_cp(checksum_offset))) = in fix_checkpoint()
|
/third_party/f2fs-tools/mkfs/ |
D | f2fs_format.c | 767 get_cp(rsvd_segment_count)) * in f2fs_write_check_point_pack() 770 if (get_cp(overprov_segment_count) < get_cp(rsvd_segment_count)) in f2fs_write_check_point_pack() 771 set_cp(overprov_segment_count, get_cp(rsvd_segment_count)); in f2fs_write_check_point_pack() 773 set_cp(overprov_segment_count, get_cp(overprov_segment_count) + in f2fs_write_check_point_pack() 776 if (f2fs_get_usable_segments(sb) <= get_cp(overprov_segment_count)) { in f2fs_write_check_point_pack() 782 get_cp(overprov_segment_count), in f2fs_write_check_point_pack() 788 set_cp(user_block_count, ((get_cp(free_segment_count) + 2 - in f2fs_write_check_point_pack() 789 get_cp(overprov_segment_count)) * c.blks_per_seg)); in f2fs_write_check_point_pack() 792 set_cp(user_block_count, ((get_cp(free_segment_count) + 6 - in f2fs_write_check_point_pack() 793 get_cp(overprov_segment_count)) * c.blks_per_seg)); in f2fs_write_check_point_pack() [all …]
|
/third_party/f2fs-tools/include/ |
D | f2fs_fs.h | 639 #define get_cp(member) \ macro 1655 uint64_t cp_ver = get_cp(checkpoint_ver); in get_cp_crc() 1656 size_t crc_offset = get_cp(checksum_offset); in get_cp_crc()
|