Lines Matching refs:NAT_ENTRY_PER_BLOCK
2371 i = start_nid % NAT_ENTRY_PER_BLOCK; in scan_nat_page()
2373 for (; i < NAT_ENTRY_PER_BLOCK; i++, start_nid++) { in scan_nat_page()
2428 for (idx = 0; idx < NAT_ENTRY_PER_BLOCK; idx++) { in scan_free_nid_bits()
2430 NAT_ENTRY_PER_BLOCK, idx); in scan_free_nid_bits()
2431 if (idx >= NAT_ENTRY_PER_BLOCK) in scan_free_nid_bits()
2434 nid = i * NAT_ENTRY_PER_BLOCK + idx; in scan_free_nid_bits()
2457 if (unlikely(nid % NAT_ENTRY_PER_BLOCK)) in __f2fs_build_free_nids()
2458 nid = NAT_BLOCK_OFFSET(nid) * NAT_ENTRY_PER_BLOCK; in __f2fs_build_free_nids()
2461 if (nm_i->nid_cnt[FREE_NID] >= NAT_ENTRY_PER_BLOCK) in __f2fs_build_free_nids()
2471 if (nm_i->nid_cnt[FREE_NID] >= NAT_ENTRY_PER_BLOCK) in __f2fs_build_free_nids()
2500 nid += (NAT_ENTRY_PER_BLOCK - (nid % NAT_ENTRY_PER_BLOCK)); in __f2fs_build_free_nids()
2924 if (valid == NAT_ENTRY_PER_BLOCK) in __update_nat_bits()
2934 unsigned int nat_index = start_nid / NAT_ENTRY_PER_BLOCK; in update_nat_bits()
2946 for (; i < NAT_ENTRY_PER_BLOCK; i++) { in update_nat_bits()
2970 for (; nid_ofs < NAT_ENTRY_PER_BLOCK; nid_ofs++) { in f2fs_enable_nat_bits()
2987 nid_t start_nid = set->set * NAT_ENTRY_PER_BLOCK; in __flush_nat_entry_set()
3183 nid = i * NAT_ENTRY_PER_BLOCK; in load_free_nid_bitmap()
3184 last_nid = nid + NAT_ENTRY_PER_BLOCK; in load_free_nid_bitmap()
3214 nm_i->max_nid = NAT_ENTRY_PER_BLOCK * nm_i->nat_blocks; in init_node_manager()
3273 f2fs_bitmap_size(NAT_ENTRY_PER_BLOCK), GFP_KERNEL); in init_free_nid_cache()