Lines Matching refs:fsck
11 #include "fsck.h"
992 struct f2fs_fsck *fsck = F2FS_FSCK(sbi);
1000 fsck->sit_area_bitmap_sz = sm_i->main_segments * SIT_VBLOCK_MAP_SIZE;
1001 fsck->sit_area_bitmap = calloc(1, fsck->sit_area_bitmap_sz);
1002 ptr = fsck->sit_area_bitmap;
1004 ASSERT(fsck->sit_area_bitmap_sz == fsck->main_area_bitmap_sz);
1027 fsck->chk.sit_valid_blocks = sum_vblocks;
1028 fsck->chk.sit_free_segs = free_segs;
1037 struct f2fs_fsck *fsck = F2FS_FSCK(sbi);
1047 fsck->chk.free_segs = 0;
1049 ptr = fsck->main_area_bitmap;
1086 fsck->chk.free_segs++;
1157 struct f2fs_fsck *fsck = F2FS_FSCK(sbi);
1175 fsck->nr_nat_entries = nr_nat_blks * NAT_ENTRY_PER_BLOCK;
1176 fsck->nat_area_bitmap_sz = (fsck->nr_nat_entries + 7) / 8;
1177 fsck->nat_area_bitmap = calloc(fsck->nat_area_bitmap_sz, 1);
1178 ASSERT(fsck->nat_area_bitmap != NULL);
1210 fsck->nat_area_bitmap);
1211 fsck->chk.valid_nat_entry_cnt++;
1224 f2fs_set_bit(nid + i, fsck->nat_area_bitmap);
1225 fsck->chk.valid_nat_entry_cnt++;
1232 fsck->chk.valid_nat_entry_cnt,
1233 fsck->chk.valid_nat_entry_cnt);