Lines Matching refs:fsck
1960 struct f2fs_fsck *fsck = F2FS_FSCK(sbi); in build_sit_area_bitmap() local
1968 fsck->sit_area_bitmap_sz = sm_i->main_segments * SIT_VBLOCK_MAP_SIZE; in build_sit_area_bitmap()
1969 fsck->sit_area_bitmap = calloc(1, fsck->sit_area_bitmap_sz); in build_sit_area_bitmap()
1970 ASSERT(fsck->sit_area_bitmap); in build_sit_area_bitmap()
1971 ptr = fsck->sit_area_bitmap; in build_sit_area_bitmap()
1973 ASSERT(fsck->sit_area_bitmap_sz == fsck->main_area_bitmap_sz); in build_sit_area_bitmap()
1996 fsck->chk.sit_valid_blocks = sum_vblocks; in build_sit_area_bitmap()
1997 fsck->chk.sit_free_segs = free_segs; in build_sit_area_bitmap()
2006 struct f2fs_fsck *fsck = F2FS_FSCK(sbi); in rewrite_sit_area_bitmap() local
2019 ptr = fsck->main_area_bitmap; in rewrite_sit_area_bitmap()
2423 struct f2fs_fsck *fsck = F2FS_FSCK(sbi); in build_nat_area_bitmap() local
2442 fsck->nr_nat_entries = nr_nat_blks * NAT_ENTRY_PER_BLOCK; in build_nat_area_bitmap()
2443 fsck->nat_area_bitmap_sz = (fsck->nr_nat_entries + 7) / 8; in build_nat_area_bitmap()
2444 fsck->nat_area_bitmap = calloc(fsck->nat_area_bitmap_sz, 1); in build_nat_area_bitmap()
2445 ASSERT(fsck->nat_area_bitmap); in build_nat_area_bitmap()
2447 fsck->entries = calloc(sizeof(struct f2fs_nat_entry), in build_nat_area_bitmap()
2448 fsck->nr_nat_entries); in build_nat_area_bitmap()
2449 ASSERT(fsck->entries); in build_nat_area_bitmap()
2477 f2fs_set_bit(nid + i, fsck->nat_area_bitmap); in build_nat_area_bitmap()
2490 fsck->nat_valid_inode_cnt++; in build_nat_area_bitmap()
2502 fsck->chk.valid_nat_entry_cnt--; in build_nat_area_bitmap()
2507 f2fs_set_bit(nid + i, fsck->nat_area_bitmap); in build_nat_area_bitmap()
2508 fsck->chk.valid_nat_entry_cnt++; in build_nat_area_bitmap()
2510 fsck->entries[nid + i] = nat_block->entries[i]; in build_nat_area_bitmap()
2523 if (fsck->entries[nid].block_addr != 0x0) { in build_nat_area_bitmap()
2524 fsck->chk.valid_nat_entry_cnt--; in build_nat_area_bitmap()
2525 f2fs_clear_bit(nid, fsck->nat_area_bitmap); in build_nat_area_bitmap()
2526 if (fsck->entries[nid].ino == nid) in build_nat_area_bitmap()
2527 fsck->nat_valid_inode_cnt--; in build_nat_area_bitmap()
2539 fsck->nat_valid_inode_cnt++; in build_nat_area_bitmap()
2542 f2fs_set_bit(nid, fsck->nat_area_bitmap); in build_nat_area_bitmap()
2543 fsck->chk.valid_nat_entry_cnt++; in build_nat_area_bitmap()
2546 fsck->entries[nid] = raw_nat; in build_nat_area_bitmap()
2551 fsck->chk.valid_nat_entry_cnt, in build_nat_area_bitmap()
2552 fsck->chk.valid_nat_entry_cnt); in build_nat_area_bitmap()