Searched refs:nm_i (Results 1 – 3 of 3) sorted by relevance
23 #define on_f2fs_build_free_nids(nmi) mutex_is_locked(&(nm_i)->build_lock)46 struct f2fs_nm_info *nm_i = NM_I(sbi); in f2fs_available_free_memory() local61 mem_size = (nm_i->nid_cnt[FREE_NID] * in f2fs_available_free_memory()63 res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 2); in f2fs_available_free_memory()65 mem_size = (nm_i->nat_cnt * sizeof(struct nat_entry)) >> in f2fs_available_free_memory()67 res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 2); in f2fs_available_free_memory()74 res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 1); in f2fs_available_free_memory()82 res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 1); in f2fs_available_free_memory()88 res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 1); in f2fs_available_free_memory()122 struct f2fs_nm_info *nm_i = NM_I(sbi); in get_next_nat_page() local[all …]
168 struct f2fs_nm_info *nm_i = NM_I(sbi); in next_free_nid() local171 spin_lock(&nm_i->nid_list_lock); in next_free_nid()172 if (nm_i->nid_cnt[FREE_NID] <= 0) { in next_free_nid()173 spin_unlock(&nm_i->nid_list_lock); in next_free_nid()176 fnid = list_first_entry(&nm_i->free_nid_list, struct free_nid, list); in next_free_nid()178 spin_unlock(&nm_i->nid_list_lock); in next_free_nid()186 struct f2fs_nm_info *nm_i = NM_I(sbi); in get_nat_bitmap() local189 if (memcmp(nm_i->nat_bitmap, nm_i->nat_bitmap_mir, in get_nat_bitmap()190 nm_i->bitmap_size)) in get_nat_bitmap()193 memcpy(addr, nm_i->nat_bitmap, nm_i->bitmap_size); in get_nat_bitmap()[all …]
1133 struct f2fs_nm_info *nm_i = NM_I(sbi); in __prepare_cp_block() local1134 nid_t last_nid = nm_i->next_scan_nid; in __prepare_cp_block()1391 struct f2fs_nm_info *nm_i = NM_I(sbi); in do_checkpoint() local1468 *(__le64 *)nm_i->nat_bits = cpu_to_le64(cp_ver); in do_checkpoint()1470 blk = start_blk + sbi->blocks_per_seg - nm_i->nat_bits_blocks; in do_checkpoint()1471 for (i = 0; i < nm_i->nat_bits_blocks; i++) in do_checkpoint()1472 f2fs_update_meta_page(sbi, nm_i->nat_bits + in do_checkpoint()