Searched refs:NAT_ENTRY_PER_BLOCK (Results 1 – 7 of 7) sorted by relevance
9 #define START_NID(nid) (((nid) / NAT_ENTRY_PER_BLOCK) * NAT_ENTRY_PER_BLOCK)12 #define NAT_BLOCK_OFFSET(start_nid) ((start_nid) / NAT_ENTRY_PER_BLOCK)16 #define MAX_FREE_NIDS (NAT_ENTRY_PER_BLOCK * FREE_NID_PAGES)
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()[all …]
267 f2fs_bitmap_size(NAT_ENTRY_PER_BLOCK); in update_mem_info()
259 blkno * NAT_ENTRY_PER_BLOCK); in f2fs_ra_meta_pages()
3606 * sbi->blocks_per_seg * NAT_ENTRY_PER_BLOCK; in init_sb_info()
445 f2fs_try_to_free_nats(sbi, NAT_ENTRY_PER_BLOCK); in f2fs_balance_fs_bg()
366 #define NAT_ENTRY_PER_BLOCK (PAGE_SIZE / sizeof(struct f2fs_nat_entry)) macro375 struct f2fs_nat_entry entries[NAT_ENTRY_PER_BLOCK];