Searched refs:nat_block (Results 1 – 3 of 3) sorted by relevance
284 void *nat_block, *zero_block; in shrink_nats() local290 nat_block = malloc(BLOCK_SZ); in shrink_nats()291 ASSERT(nat_block); in shrink_nats()309 ret = dev_read_block(nat_block, block_addr); in shrink_nats()312 if (memcmp(zero_block, nat_block, BLOCK_SZ)) { in shrink_nats()320 free(nat_block); in shrink_nats()333 void *nat_block; in migrate_nat() local339 nat_block = malloc(BLOCK_SZ); in migrate_nat()340 ASSERT(nat_block); in migrate_nat()355 ret = dev_read_block(nat_block, block_addr); in migrate_nat()[all …]
1534 struct f2fs_nat_block *nat_block; in f2fs_late_init_nid_bitmap() local1541 nat_block = malloc(F2FS_BLKSIZE); in f2fs_late_init_nid_bitmap()1542 if (!nat_block) { in f2fs_late_init_nid_bitmap()1554 ret = dev_read_block(nat_block, start_blk); in f2fs_late_init_nid_bitmap()1558 if (nat_block->entries[nid % NAT_ENTRY_PER_BLOCK].block_addr) in f2fs_late_init_nid_bitmap()1562 free(nat_block); in f2fs_late_init_nid_bitmap()1594 struct f2fs_nat_block *nat_block; in write_nat_bits() local1602 nat_block = malloc(F2FS_BLKSIZE); in write_nat_bits()1603 ASSERT(nat_block); in write_nat_bits()1627 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()