Lines Matching refs:nm_i
170 struct f2fs_nm_info *nm_i = NM_I(sbi); in next_free_nid() local
173 spin_lock(&nm_i->nid_list_lock); in next_free_nid()
174 if (nm_i->nid_cnt[FREE_NID] <= 0) { in next_free_nid()
175 spin_unlock(&nm_i->nid_list_lock); in next_free_nid()
178 fnid = list_first_entry(&nm_i->free_nid_list, struct free_nid, list); in next_free_nid()
180 spin_unlock(&nm_i->nid_list_lock); in next_free_nid()
188 struct f2fs_nm_info *nm_i = NM_I(sbi); in get_nat_bitmap() local
191 if (memcmp(nm_i->nat_bitmap, nm_i->nat_bitmap_mir, in get_nat_bitmap()
192 nm_i->bitmap_size)) in get_nat_bitmap()
195 memcpy(addr, nm_i->nat_bitmap, nm_i->bitmap_size); in get_nat_bitmap()
200 struct f2fs_nm_info *nm_i = NM_I(sbi); in current_nat_addr() local
211 block_addr = (pgoff_t)(nm_i->nat_blkaddr + in current_nat_addr()
215 if (f2fs_test_bit(block_off, nm_i->nat_bitmap)) in current_nat_addr()
224 struct f2fs_nm_info *nm_i = NM_I(sbi); in next_nat_addr() local
226 block_addr -= nm_i->nat_blkaddr; in next_nat_addr()
228 return block_addr + nm_i->nat_blkaddr; in next_nat_addr()
231 static inline void set_to_next_nat(struct f2fs_nm_info *nm_i, nid_t start_nid) in set_to_next_nat() argument
235 f2fs_change_bit(block_off, nm_i->nat_bitmap); in set_to_next_nat()
237 f2fs_change_bit(block_off, nm_i->nat_bitmap_mir); in set_to_next_nat()