Searched refs:nm_i (Results 1 – 3 of 3) sorted by relevance
22 #define on_f2fs_build_free_nids(nmi) mutex_is_locked(&(nm_i)->build_lock)45 struct f2fs_nm_info *nm_i = NM_I(sbi); in f2fs_available_free_memory() local52 if (!nm_i) in f2fs_available_free_memory()64 mem_size = (nm_i->nid_cnt[FREE_NID] * in f2fs_available_free_memory()66 res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 2); in f2fs_available_free_memory()68 mem_size = (nm_i->nat_cnt[TOTAL_NAT] * in f2fs_available_free_memory()70 res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 2); in f2fs_available_free_memory()77 res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 1); in f2fs_available_free_memory()85 res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 1); in f2fs_available_free_memory()95 res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 2); in f2fs_available_free_memory()[all …]
174 struct f2fs_nm_info *nm_i = NM_I(sbi); in next_free_nid() local177 spin_lock(&nm_i->nid_list_lock); in next_free_nid()178 if (nm_i->nid_cnt[FREE_NID] <= 0) { in next_free_nid()179 spin_unlock(&nm_i->nid_list_lock); in next_free_nid()182 fnid = list_first_entry(&nm_i->free_nid_list, struct free_nid, list); in next_free_nid()184 spin_unlock(&nm_i->nid_list_lock); in next_free_nid()192 struct f2fs_nm_info *nm_i = NM_I(sbi); in get_nat_bitmap() local195 if (memcmp(nm_i->nat_bitmap, nm_i->nat_bitmap_mir, in get_nat_bitmap()196 nm_i->bitmap_size)) in get_nat_bitmap()199 memcpy(addr, nm_i->nat_bitmap, nm_i->bitmap_size); in get_nat_bitmap()[all …]
1160 struct f2fs_nm_info *nm_i = NM_I(sbi); in __prepare_cp_block() local1161 nid_t last_nid = nm_i->next_scan_nid; in __prepare_cp_block()1440 struct f2fs_nm_info *nm_i = NM_I(sbi); in do_checkpoint() local1516 *(__le64 *)nm_i->nat_bits = cpu_to_le64(cp_ver); in do_checkpoint()1518 blk = start_blk + sbi->blocks_per_seg - nm_i->nat_bits_blocks; in do_checkpoint()1519 for (i = 0; i < nm_i->nat_bits_blocks; i++) in do_checkpoint()1520 f2fs_update_meta_page(sbi, nm_i->nat_bits + in do_checkpoint()