Lines Matching refs:FREE_NID
66 mem_size = (nm_i->nid_cnt[FREE_NID] * in f2fs_available_free_memory()
2199 nm_i->nid_cnt[FREE_NID]++; in __insert_free_nid()
2211 if (state == FREE_NID) in __remove_free_nid()
2230 case FREE_NID: in __move_free_nid()
2299 i->state = FREE_NID; in add_free_nid()
2334 if (e->state == FREE_NID) in add_free_nid()
2363 if (i && i->state == FREE_NID) { in remove_free_nid()
2364 __remove_free_nid(sbi, i, FREE_NID); in remove_free_nid()
2450 if (nm_i->nid_cnt[FREE_NID] >= MAX_FREE_NIDS) in scan_free_nid_bits()
2474 if (nm_i->nid_cnt[FREE_NID] >= NAT_ENTRY_PER_BLOCK) in __f2fs_build_free_nids()
2484 if (nm_i->nid_cnt[FREE_NID] >= NAT_ENTRY_PER_BLOCK) in __f2fs_build_free_nids()
2574 if (nm_i->nid_cnt[FREE_NID] && !on_f2fs_build_free_nids(nm_i)) { in f2fs_alloc_nid()
2580 __move_free_nid(sbi, i, FREE_NID, PREALLOC_NID); in f2fs_alloc_nid()
2633 __move_free_nid(sbi, i, PREALLOC_NID, FREE_NID); in f2fs_alloc_nid_failed()
2651 if (nm_i->nid_cnt[FREE_NID] <= MAX_FREE_NIDS) in f2fs_try_to_free_nids()
2657 while (nr_shrink && nm_i->nid_cnt[FREE_NID] > MAX_FREE_NIDS) { in f2fs_try_to_free_nids()
2664 nm_i->nid_cnt[FREE_NID] <= MAX_FREE_NIDS) in f2fs_try_to_free_nids()
2666 __remove_free_nid(sbi, i, FREE_NID); in f2fs_try_to_free_nids()
3239 nm_i->nid_cnt[FREE_NID] = 0; in init_node_manager()
3351 __remove_free_nid(sbi, i, FREE_NID); in f2fs_destroy_node_manager()
3356 f2fs_bug_on(sbi, nm_i->nid_cnt[FREE_NID]); in f2fs_destroy_node_manager()