Home
last modified time | relevance | path

Searched refs:NAT_ENTRY_PER_BLOCK (Results 1 – 6 of 6) sorted by relevance

/third_party/f2fs-tools/fsck/
Dresize.c53 NAT_ENTRY_PER_BLOCK); in get_new_sb()
295 new_max_nid = NAT_ENTRY_PER_BLOCK * nat_blocks; in shrink_nats()
297 for (nid = nm_i->max_nid - 1; nid > new_max_nid; nid -= NAT_ENTRY_PER_BLOCK) { in shrink_nats()
298 block_off = nid / NAT_ENTRY_PER_BLOCK; in shrink_nats()
340 for (nid = nm_i->max_nid - 1; nid >= 0; nid -= NAT_ENTRY_PER_BLOCK) { in migrate_nat()
341 block_off = nid / NAT_ENTRY_PER_BLOCK; in migrate_nat()
368 new_max_nid = NAT_ENTRY_PER_BLOCK * nat_blocks; in migrate_nat()
376 nid += NAT_ENTRY_PER_BLOCK) { in migrate_nat()
377 block_off = nid / NAT_ENTRY_PER_BLOCK; in migrate_nat()
Dmount.c641 blkno * NAT_ENTRY_PER_BLOCK, NULL); in f2fs_ra_meta_pages()
1086 sbi->blocks_per_seg * NAT_ENTRY_PER_BLOCK; in init_sb_info()
1523 if (!(nid % NAT_ENTRY_PER_BLOCK)) { in f2fs_late_init_nid_bitmap()
1531 if (nat_block->entries[nid % NAT_ENTRY_PER_BLOCK].block_addr) in f2fs_late_init_nid_bitmap()
1603 for (j = 0; j < NAT_ENTRY_PER_BLOCK; j++) { in write_nat_bits()
1610 else if (valid == NAT_ENTRY_PER_BLOCK) in write_nat_bits()
1672 uint32_t start_nid = i * NAT_ENTRY_PER_BLOCK; in check_nat_bits()
1677 for (j = 0; j < NAT_ENTRY_PER_BLOCK; j++) { in check_nat_bits()
1686 } else if (valid == NAT_ENTRY_PER_BLOCK) { in check_nat_bits()
1722 nm_i->max_nid = NAT_ENTRY_PER_BLOCK * nm_i->nat_blocks; in init_node_manager()
[all …]
Df2fs.h515 return (nid < (NAT_ENTRY_PER_BLOCK * in IS_VALID_NID()
Ddump.c84 &nat_block->entries[nid % NAT_ENTRY_PER_BLOCK]); in nat_dump()
/third_party/f2fs-tools/include/
Df2fs_fs.h1090 #define NAT_ENTRY_PER_BLOCK (PAGE_CACHE_SIZE / sizeof(struct f2fs_nat_entry)) macro
1091 #define NAT_BLOCK_OFFSET(start_nid) (start_nid / NAT_ENTRY_PER_BLOCK)
1104 struct f2fs_nat_entry entries[NAT_ENTRY_PER_BLOCK];
/third_party/f2fs-tools/mkfs/
Df2fs_format.c347 NAT_ENTRY_PER_BLOCK); in f2fs_prepare_super_block()