Home
last modified time | relevance | path

Searched refs:nat_block (Results 1 – 3 of 3) sorted by relevance

/external/f2fs-tools/fsck/
Dresize.c284 void *nat_block, *zero_block; in shrink_nats() local
290 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() local
339 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 …]
Dmount.c1534 struct f2fs_nat_block *nat_block; in f2fs_late_init_nid_bitmap() local
1541 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() local
1602 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 …]
Ddump.c39 struct f2fs_nat_block *nat_block; in nat_dump() local
46 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()