Lines Matching refs:FREE_NID
65 mem_size = (nm_i->nid_cnt[FREE_NID] * in f2fs_available_free_memory()
2013 if (state == FREE_NID) in __insert_free_nid()
2025 if (state == FREE_NID) in __remove_free_nid()
2044 case FREE_NID: in __move_free_nid()
2095 i->state = FREE_NID; in add_free_nid()
2130 if (e->state == FREE_NID) in add_free_nid()
2136 err = __insert_free_nid(sbi, i, FREE_NID); in add_free_nid()
2159 if (i && i->state == FREE_NID) { in remove_free_nid()
2160 __remove_free_nid(sbi, i, FREE_NID); in remove_free_nid()
2246 if (nm_i->nid_cnt[FREE_NID] >= MAX_FREE_NIDS) in scan_free_nid_bits()
2270 if (nm_i->nid_cnt[FREE_NID] >= NAT_ENTRY_PER_BLOCK) in __f2fs_build_free_nids()
2280 if (nm_i->nid_cnt[FREE_NID] >= NAT_ENTRY_PER_BLOCK) in __f2fs_build_free_nids()
2363 if (nm_i->nid_cnt[FREE_NID] && !on_f2fs_build_free_nids(nm_i)) { in f2fs_alloc_nid()
2369 __move_free_nid(sbi, i, FREE_NID, PREALLOC_NID); in f2fs_alloc_nid()
2422 __move_free_nid(sbi, i, PREALLOC_NID, FREE_NID); in f2fs_alloc_nid_failed()
2441 if (nm_i->nid_cnt[FREE_NID] <= MAX_FREE_NIDS) in f2fs_try_to_free_nids()
2450 nm_i->nid_cnt[FREE_NID] <= MAX_FREE_NIDS) in f2fs_try_to_free_nids()
2453 __remove_free_nid(sbi, i, FREE_NID); in f2fs_try_to_free_nids()
2965 nm_i->nid_cnt[FREE_NID] = 0; in init_node_manager()
3079 __remove_free_nid(sbi, i, FREE_NID); in f2fs_destroy_node_manager()
3084 f2fs_bug_on(sbi, nm_i->nid_cnt[FREE_NID]); in f2fs_destroy_node_manager()