Home
last modified time | relevance | path

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

/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()
97 res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 2); in f2fs_available_free_memory()
[all …]
Dnode.h169 struct f2fs_nm_info *nm_i = NM_I(sbi); in next_free_nid() local
172 spin_lock(&nm_i->nid_list_lock); in next_free_nid()
173 if (nm_i->nid_cnt[FREE_NID] <= 0) { in next_free_nid()
174 spin_unlock(&nm_i->nid_list_lock); in next_free_nid()
177 fnid = list_first_entry(&nm_i->free_nid_list, struct free_nid, list); in next_free_nid()
179 spin_unlock(&nm_i->nid_list_lock); in next_free_nid()
187 struct f2fs_nm_info *nm_i = NM_I(sbi); in get_nat_bitmap() local
190 if (memcmp(nm_i->nat_bitmap, nm_i->nat_bitmap_mir, in get_nat_bitmap()
191 nm_i->bitmap_size)) in get_nat_bitmap()
194 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()
1454 struct f2fs_nm_info *nm_i = NM_I(sbi); in do_checkpoint() local
1529 *(__le64 *)nm_i->nat_bits = cpu_to_le64(cp_ver); in do_checkpoint()
1531 blk = start_blk + sbi->blocks_per_seg - nm_i->nat_bits_blocks; in do_checkpoint()
1532 for (i = 0; i < nm_i->nat_bits_blocks; i++) in do_checkpoint()
1533 f2fs_update_meta_page(sbi, nm_i->nat_bits + in do_checkpoint()