Searched refs:NAT_ENTRY_PER_BLOCK (Results 1 – 7 of 7) sorted by relevance
28 if (NM_I(sbi)->fcnt > NAT_ENTRY_PER_BLOCK) in __count_free_nids()29 return NM_I(sbi)->fcnt - NAT_ENTRY_PER_BLOCK; in __count_free_nids()
12 #define START_NID(nid) ((nid / NAT_ENTRY_PER_BLOCK) * NAT_ENTRY_PER_BLOCK)15 #define NAT_BLOCK_OFFSET(start_nid) (start_nid / NAT_ENTRY_PER_BLOCK)
1503 i = start_nid % NAT_ENTRY_PER_BLOCK; in scan_nat_page()1505 for (; i < NAT_ENTRY_PER_BLOCK; i++, start_nid++) { in scan_nat_page()1528 if (nm_i->fcnt > NAT_ENTRY_PER_BLOCK) in build_free_nids()1541 nid += (NAT_ENTRY_PER_BLOCK - (nid % NAT_ENTRY_PER_BLOCK)); in build_free_nids()1671 if (nr_shrink <= 0 || nm_i->fcnt <= NAT_ENTRY_PER_BLOCK) in try_to_free_nids()1881 nid_t start_nid = set->set * NAT_ENTRY_PER_BLOCK; in __flush_nat_entry_set()2001 nm_i->max_nid = NAT_ENTRY_PER_BLOCK * nat_blocks; in init_node_manager()
171 blkno * NAT_ENTRY_PER_BLOCK); in ra_meta_pages()
304 try_to_free_nats(sbi, NAT_ENTRY_PER_BLOCK); in f2fs_balance_fs_bg()307 try_to_free_nids(sbi, NAT_ENTRY_PER_BLOCK * FREE_NID_PAGES); in f2fs_balance_fs_bg()
1010 * sbi->blocks_per_seg * NAT_ENTRY_PER_BLOCK; in init_sb_info()
264 #define NAT_ENTRY_PER_BLOCK (PAGE_CACHE_SIZE / sizeof(struct f2fs_nat_entry)) macro273 struct f2fs_nat_entry entries[NAT_ENTRY_PER_BLOCK];