Searched refs:NM_I (Results 1 – 7 of 7) sorted by relevance
129 return NM_I(sbi)->dirty_nat_cnt >= NM_I(sbi)->max_nid * in excess_dirty_nats()130 NM_I(sbi)->dirty_nats_ratio / 100; in excess_dirty_nats()135 return NM_I(sbi)->nat_cnt >= DEF_NAT_CACHE_THRESHOLD; in excess_cached_nats()168 struct f2fs_nm_info *nm_i = NM_I(sbi); in next_free_nid()186 struct f2fs_nm_info *nm_i = NM_I(sbi); in get_nat_bitmap()198 struct f2fs_nm_info *nm_i = NM_I(sbi); in current_nat_addr()222 struct f2fs_nm_info *nm_i = NM_I(sbi); in next_nat_addr()
21 long count = NM_I(sbi)->nat_cnt - NM_I(sbi)->dirty_nat_cnt; in __count_nat_entries()28 long count = NM_I(sbi)->nid_cnt[FREE_NID] - MAX_FREE_NIDS; in __count_free_nids()
148 si->nats = NM_I(sbi)->nat_cnt; in update_general_status()149 si->dirty_nats = NM_I(sbi)->dirty_nat_cnt; in update_general_status()152 si->free_nids = NM_I(sbi)->nid_cnt[FREE_NID]; in update_general_status()153 si->avail_nids = NM_I(sbi)->available_nids; in update_general_status()154 si->alloc_nids = NM_I(sbi)->nid_cnt[PREALLOC_NID]; in update_general_status()255 si->base_mem += (NM_I(sbi)->nat_bits_blocks << F2FS_BLKSIZE_BITS); in update_mem_info()256 si->base_mem += NM_I(sbi)->nat_blocks * in update_mem_info()258 si->base_mem += NM_I(sbi)->nat_blocks / 8; in update_mem_info()259 si->base_mem += NM_I(sbi)->nat_blocks * sizeof(unsigned short); in update_mem_info()278 si->cache_mem += (NM_I(sbi)->nid_cnt[FREE_NID] + in update_mem_info()[all …]
35 if (unlikely(nid < F2FS_ROOT_INO(sbi) || nid >= NM_I(sbi)->max_nid)) { in f2fs_check_nid_range()46 struct f2fs_nm_info *nm_i = NM_I(sbi); in f2fs_available_free_memory()122 struct f2fs_nm_info *nm_i = NM_I(sbi); in get_next_nat_page()354 struct f2fs_nm_info *nm_i = NM_I(sbi); in f2fs_need_dentry_mark()371 struct f2fs_nm_info *nm_i = NM_I(sbi); in f2fs_is_checkpointed_node()385 struct f2fs_nm_info *nm_i = NM_I(sbi); in f2fs_need_inode_block_update()403 struct f2fs_nm_info *nm_i = NM_I(sbi); in cache_nat_entry()427 struct f2fs_nm_info *nm_i = NM_I(sbi); in set_node_addr()484 struct f2fs_nm_info *nm_i = NM_I(sbi); in f2fs_try_to_free_nats()516 struct f2fs_nm_info *nm_i = NM_I(sbi); in f2fs_get_node_info()[all …]
239 NAT_BLOCK_OFFSET(NM_I(sbi)->max_nid))) in f2fs_ra_meta_pages()1133 struct f2fs_nm_info *nm_i = NM_I(sbi); in __prepare_cp_block()1295 sbi->blocks_per_seg - NM_I(sbi)->nat_bits_blocks) in update_ckpt_flags()1391 struct f2fs_nm_info *nm_i = NM_I(sbi); in do_checkpoint()1603 if (NM_I(sbi)->dirty_nat_cnt == 0 && in f2fs_write_checkpoint()
1801 static inline struct f2fs_nm_info *NM_I(struct f2fs_sb_info *sbi) in NM_I() function1931 nat_bits = NM_I(sbi)->nat_bits; in disable_nat_bits()1932 NM_I(sbi)->nat_bits = NULL; in disable_nat_bits()3656 else if (blkaddr < NM_I(sbi)->nat_blkaddr) \
61 return (unsigned char *)NM_I(sbi); in __struct_ptr()