Home
last modified time | relevance | path

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

/linux-4.4.14/fs/f2fs/
Dshrinker.c28 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()
Dnode.h12 #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)
Dnode.c1503 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()
Dcheckpoint.c171 blkno * NAT_ENTRY_PER_BLOCK); in ra_meta_pages()
Dsegment.c304 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()
Dsuper.c1010 * sbi->blocks_per_seg * NAT_ENTRY_PER_BLOCK; in init_sb_info()
/linux-4.4.14/include/linux/
Df2fs_fs.h264 #define NAT_ENTRY_PER_BLOCK (PAGE_CACHE_SIZE / sizeof(struct f2fs_nat_entry)) macro
273 struct f2fs_nat_entry entries[NAT_ENTRY_PER_BLOCK];