Lines Matching refs:FREE_NID
66 mem_size = (nm_i->nid_cnt[FREE_NID] * in f2fs_available_free_memory()
2217 nm_i->nid_cnt[FREE_NID]++; in __insert_free_nid()
2229 if (state == FREE_NID) in __remove_free_nid()
2248 case FREE_NID: in __move_free_nid()
2317 i->state = FREE_NID; in add_free_nid()
2352 if (e->state == FREE_NID) in add_free_nid()
2381 if (i && i->state == FREE_NID) { in remove_free_nid()
2382 __remove_free_nid(sbi, i, FREE_NID); in remove_free_nid()
2468 if (nm_i->nid_cnt[FREE_NID] >= MAX_FREE_NIDS) in scan_free_nid_bits()
2492 if (nm_i->nid_cnt[FREE_NID] >= NAT_ENTRY_PER_BLOCK) in __f2fs_build_free_nids()
2502 if (nm_i->nid_cnt[FREE_NID] >= NAT_ENTRY_PER_BLOCK) in __f2fs_build_free_nids()
2592 if (nm_i->nid_cnt[FREE_NID] && !on_f2fs_build_free_nids(nm_i)) { in f2fs_alloc_nid()
2598 __move_free_nid(sbi, i, FREE_NID, PREALLOC_NID); in f2fs_alloc_nid()
2651 __move_free_nid(sbi, i, PREALLOC_NID, FREE_NID); in f2fs_alloc_nid_failed()
2669 if (nm_i->nid_cnt[FREE_NID] <= MAX_FREE_NIDS) in f2fs_try_to_free_nids()
2675 while (nr_shrink && nm_i->nid_cnt[FREE_NID] > MAX_FREE_NIDS) { in f2fs_try_to_free_nids()
2682 nm_i->nid_cnt[FREE_NID] <= MAX_FREE_NIDS) in f2fs_try_to_free_nids()
2684 __remove_free_nid(sbi, i, FREE_NID); in f2fs_try_to_free_nids()
3257 nm_i->nid_cnt[FREE_NID] = 0; in init_node_manager()
3369 __remove_free_nid(sbi, i, FREE_NID); in f2fs_destroy_node_manager()
3374 f2fs_bug_on(sbi, nm_i->nid_cnt[FREE_NID]); in f2fs_destroy_node_manager()