Searched refs:nat_block (Results 1 – 3 of 3) sorted by relevance
/external/f2fs-tools/fsck/ |
D | mount.c | 720 struct f2fs_nat_block nat_block; in f2fs_init_nid_bitmap() local 735 memset((void *)&nat_block, 0, sizeof(struct f2fs_nat_block)); in f2fs_init_nid_bitmap() 742 ret = dev_read_block((void *)&nat_block, start_blk); in f2fs_init_nid_bitmap() 746 if (nat_block.entries[nid % NAT_ENTRY_PER_BLOCK].block_addr) in f2fs_init_nid_bitmap() 789 struct f2fs_nat_block *nat_block; in write_nat_bits() local 797 nat_block = malloc(F2FS_BLKSIZE); in write_nat_bits() 798 ASSERT(nat_block); in write_nat_bits() 817 ret = dev_read_block(nat_block, blkaddr); in write_nat_bits() 822 nat_block->entries[j].block_addr != NULL_ADDR) in write_nat_bits() 831 free(nat_block); in write_nat_bits() [all …]
|
D | resize.c | 251 void *nat_block, *zero_block; in shrink_nats() local 257 nat_block = malloc(BLOCK_SZ); in shrink_nats() 258 ASSERT(nat_block); in shrink_nats() 276 ret = dev_read_block(nat_block, block_addr); in shrink_nats() 279 if (memcmp(zero_block, nat_block, BLOCK_SZ)) { in shrink_nats() 287 free(nat_block); in shrink_nats() 300 void *nat_block; in migrate_nat() local 306 nat_block = malloc(BLOCK_SZ); in migrate_nat() 307 ASSERT(nat_block); in migrate_nat() 319 ret = dev_read_block(nat_block, block_addr); in migrate_nat() [all …]
|
D | dump.c | 30 struct f2fs_nat_block *nat_block; in nat_dump() local 40 nat_block = (struct f2fs_nat_block *)calloc(BLOCK_SZ, 1); in nat_dump() 42 ASSERT(nat_block); in nat_dump() 62 ret = dev_read_block(nat_block, block_addr); in nat_dump() 92 &nat_block->entries[i]); in nat_dump() 112 free(nat_block); in nat_dump()
|