• Home
  • Raw
  • Download

Lines Matching refs:fsck

2457 	struct f2fs_fsck *fsck = F2FS_FSCK(sbi);  in build_sit_area_bitmap()  local
2465 fsck->sit_area_bitmap_sz = sm_i->main_segments * SIT_VBLOCK_MAP_SIZE; in build_sit_area_bitmap()
2466 fsck->sit_area_bitmap = calloc(1, fsck->sit_area_bitmap_sz); in build_sit_area_bitmap()
2467 ASSERT(fsck->sit_area_bitmap); in build_sit_area_bitmap()
2468 ptr = fsck->sit_area_bitmap; in build_sit_area_bitmap()
2470 ASSERT(fsck->sit_area_bitmap_sz == fsck->main_area_bitmap_sz); in build_sit_area_bitmap()
2493 fsck->chk.sit_valid_blocks = sum_vblocks; in build_sit_area_bitmap()
2494 fsck->chk.sit_free_segs = free_segs; in build_sit_area_bitmap()
2503 struct f2fs_fsck *fsck = F2FS_FSCK(sbi); in rewrite_sit_area_bitmap() local
2516 ptr = fsck->main_area_bitmap; in rewrite_sit_area_bitmap()
3035 struct f2fs_fsck *fsck = F2FS_FSCK(sbi); in write_checkpoint() local
3037 set_cp(valid_block_count, fsck->chk.valid_blk_cnt); in write_checkpoint()
3038 set_cp(valid_node_count, fsck->chk.valid_node_cnt); in write_checkpoint()
3039 set_cp(valid_inode_count, fsck->chk.valid_inode_cnt); in write_checkpoint()
3113 struct f2fs_fsck *fsck = F2FS_FSCK(sbi); in build_nat_area_bitmap() local
3132 fsck->nr_nat_entries = nr_nat_blks * NAT_ENTRY_PER_BLOCK; in build_nat_area_bitmap()
3133 fsck->nat_area_bitmap_sz = (fsck->nr_nat_entries + 7) / 8; in build_nat_area_bitmap()
3134 fsck->nat_area_bitmap = calloc(fsck->nat_area_bitmap_sz, 1); in build_nat_area_bitmap()
3135 ASSERT(fsck->nat_area_bitmap); in build_nat_area_bitmap()
3137 fsck->entries = calloc(sizeof(struct f2fs_nat_entry), in build_nat_area_bitmap()
3138 fsck->nr_nat_entries); in build_nat_area_bitmap()
3139 ASSERT(fsck->entries); in build_nat_area_bitmap()
3167 f2fs_set_bit(nid + i, fsck->nat_area_bitmap); in build_nat_area_bitmap()
3180 fsck->nat_valid_inode_cnt++; in build_nat_area_bitmap()
3192 fsck->chk.valid_nat_entry_cnt--; in build_nat_area_bitmap()
3197 f2fs_set_bit(nid + i, fsck->nat_area_bitmap); in build_nat_area_bitmap()
3198 fsck->chk.valid_nat_entry_cnt++; in build_nat_area_bitmap()
3200 fsck->entries[nid + i] = nat_block->entries[i]; in build_nat_area_bitmap()
3213 if (fsck->entries[nid].block_addr != 0x0) { in build_nat_area_bitmap()
3214 fsck->chk.valid_nat_entry_cnt--; in build_nat_area_bitmap()
3215 f2fs_clear_bit(nid, fsck->nat_area_bitmap); in build_nat_area_bitmap()
3216 if (fsck->entries[nid].ino == nid) in build_nat_area_bitmap()
3217 fsck->nat_valid_inode_cnt--; in build_nat_area_bitmap()
3229 fsck->nat_valid_inode_cnt++; in build_nat_area_bitmap()
3232 f2fs_set_bit(nid, fsck->nat_area_bitmap); in build_nat_area_bitmap()
3233 fsck->chk.valid_nat_entry_cnt++; in build_nat_area_bitmap()
3236 fsck->entries[nid] = raw_nat; in build_nat_area_bitmap()
3241 fsck->chk.valid_nat_entry_cnt, in build_nat_area_bitmap()
3242 fsck->chk.valid_nat_entry_cnt); in build_nat_area_bitmap()