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 …]
1434 struct f2fs_nat_block *nat_block; in f2fs_late_init_nid_bitmap() local1441 nat_block = malloc(F2FS_BLKSIZE); in f2fs_late_init_nid_bitmap()1442 if (!nat_block) { in f2fs_late_init_nid_bitmap()1454 ret = dev_read_block(nat_block, start_blk); in f2fs_late_init_nid_bitmap()1458 if (nat_block->entries[nid % NAT_ENTRY_PER_BLOCK].block_addr) in f2fs_late_init_nid_bitmap()1462 free(nat_block); in f2fs_late_init_nid_bitmap()1494 struct f2fs_nat_block *nat_block; in write_nat_bits() local1502 nat_block = malloc(F2FS_BLKSIZE); in write_nat_bits()1503 ASSERT(nat_block); in write_nat_bits()1527 ret = dev_read_block(nat_block, blkaddr); in write_nat_bits()[all …]
36 struct f2fs_nat_block *nat_block; in nat_dump() local43 nat_block = (struct f2fs_nat_block *)calloc(BLOCK_SZ, 1); in nat_dump()44 ASSERT(nat_block); in nat_dump()78 ret = dev_read_block(nat_block, block_addr); in nat_dump()81 &nat_block->entries[nid % NAT_ENTRY_PER_BLOCK]); in nat_dump()100 free(nat_block); in nat_dump()