Searched refs:nat_block (Results 1 – 3 of 3) sorted by relevance
282 void *nat_block, *zero_block; in shrink_nats() local288 nat_block = malloc(BLOCK_SZ); in shrink_nats()289 ASSERT(nat_block); in shrink_nats()307 ret = dev_read_block(nat_block, block_addr); in shrink_nats()310 if (memcmp(zero_block, nat_block, BLOCK_SZ)) { in shrink_nats()318 free(nat_block); in shrink_nats()331 void *nat_block; in migrate_nat() local337 nat_block = malloc(BLOCK_SZ); in migrate_nat()338 ASSERT(nat_block); in migrate_nat()353 ret = dev_read_block(nat_block, block_addr); in migrate_nat()[all …]
1468 struct f2fs_nat_block *nat_block; in f2fs_late_init_nid_bitmap() local1475 nat_block = malloc(F2FS_BLKSIZE); in f2fs_late_init_nid_bitmap()1476 if (!nat_block) { in f2fs_late_init_nid_bitmap()1488 ret = dev_read_block(nat_block, start_blk); in f2fs_late_init_nid_bitmap()1492 if (nat_block->entries[nid % NAT_ENTRY_PER_BLOCK].block_addr) in f2fs_late_init_nid_bitmap()1496 free(nat_block); in f2fs_late_init_nid_bitmap()1528 struct f2fs_nat_block *nat_block; in write_nat_bits() local1536 nat_block = malloc(F2FS_BLKSIZE); in write_nat_bits()1537 ASSERT(nat_block); in write_nat_bits()1561 ret = dev_read_block(nat_block, blkaddr); in write_nat_bits()[all …]
39 struct f2fs_nat_block *nat_block; in nat_dump() local46 nat_block = (struct f2fs_nat_block *)calloc(BLOCK_SZ, 1); in nat_dump()47 ASSERT(nat_block); in nat_dump()81 ret = dev_read_block(nat_block, block_addr); in nat_dump()84 &nat_block->entries[nid % NAT_ENTRY_PER_BLOCK]); in nat_dump()103 free(nat_block); in nat_dump()