Home
last modified time | relevance | path

Searched refs:nm_i (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.1/fs/f2fs/
Dnode.c23 #define on_f2fs_build_free_nids(nmi) mutex_is_locked(&(nm_i)->build_lock)
47 struct f2fs_nm_info *nm_i = NM_I(sbi); in f2fs_available_free_memory() local
54 if (!nm_i) in f2fs_available_free_memory()
66 mem_size = (nm_i->nid_cnt[FREE_NID] * in f2fs_available_free_memory()
68 res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 2); in f2fs_available_free_memory()
70 mem_size = (nm_i->nat_cnt[TOTAL_NAT] * in f2fs_available_free_memory()
72 res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 2); in f2fs_available_free_memory()
79 res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 1); in f2fs_available_free_memory()
87 res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 1); in f2fs_available_free_memory()
93 res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 1); in f2fs_available_free_memory()
[all …]
Dnode.h170 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()
[all …]
Dcheckpoint.c1166 struct f2fs_nm_info *nm_i = NM_I(sbi); in __prepare_cp_block() local
1167 nid_t last_nid = nm_i->next_scan_nid; in __prepare_cp_block()
1453 struct f2fs_nm_info *nm_i = NM_I(sbi); in do_checkpoint() local
1530 *(__le64 *)nm_i->nat_bits = cpu_to_le64(cp_ver); in do_checkpoint()
1532 blk = start_blk + sbi->blocks_per_seg - nm_i->nat_bits_blocks; in do_checkpoint()
1533 for (i = 0; i < nm_i->nat_bits_blocks; i++) in do_checkpoint()
1534 f2fs_update_meta_page(sbi, nm_i->nat_bits + in do_checkpoint()