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()
101 si->nats = NM_I(sbi)->nat_cnt; in update_general_status()102 si->dirty_nats = NM_I(sbi)->dirty_nat_cnt; in update_general_status()105 si->free_nids = NM_I(sbi)->nid_cnt[FREE_NID]; in update_general_status()106 si->avail_nids = NM_I(sbi)->available_nids; in update_general_status()107 si->alloc_nids = NM_I(sbi)->nid_cnt[PREALLOC_NID]; in update_general_status()217 si->base_mem += (NM_I(sbi)->nat_bits_blocks << F2FS_BLKSIZE_BITS); in update_mem_info()218 si->base_mem += NM_I(sbi)->nat_blocks * in update_mem_info()220 si->base_mem += NM_I(sbi)->nat_blocks / 8; in update_mem_info()221 si->base_mem += NM_I(sbi)->nat_blocks * sizeof(unsigned short); in update_mem_info()240 si->cache_mem += (NM_I(sbi)->nid_cnt[FREE_NID] + in update_mem_info()[all …]
24 long count = NM_I(sbi)->nat_cnt - NM_I(sbi)->dirty_nat_cnt; in __count_nat_entries()31 long count = NM_I(sbi)->nid_cnt[FREE_NID] - MAX_FREE_NIDS; in __count_free_nids()
38 if (unlikely(nid < F2FS_ROOT_INO(sbi) || nid >= NM_I(sbi)->max_nid)) { in f2fs_check_nid_range()50 struct f2fs_nm_info *nm_i = NM_I(sbi); in f2fs_available_free_memory()126 struct f2fs_nm_info *nm_i = NM_I(sbi); in get_next_nat_page()356 struct f2fs_nm_info *nm_i = NM_I(sbi); in f2fs_need_dentry_mark()373 struct f2fs_nm_info *nm_i = NM_I(sbi); in f2fs_is_checkpointed_node()387 struct f2fs_nm_info *nm_i = NM_I(sbi); in f2fs_need_inode_block_update()405 struct f2fs_nm_info *nm_i = NM_I(sbi); in cache_nat_entry()429 struct f2fs_nm_info *nm_i = NM_I(sbi); in set_node_addr()486 struct f2fs_nm_info *nm_i = NM_I(sbi); in f2fs_try_to_free_nats()521 struct f2fs_nm_info *nm_i = NM_I(sbi); in f2fs_get_node_info()[all …]
214 NAT_BLOCK_OFFSET(NM_I(sbi)->max_nid))) in f2fs_ra_meta_pages()1098 struct f2fs_nm_info *nm_i = NM_I(sbi); in __prepare_cp_block()1214 sbi->blocks_per_seg - NM_I(sbi)->nat_bits_blocks) in update_ckpt_flags()1287 struct f2fs_nm_info *nm_i = NM_I(sbi); in do_checkpoint()1503 if (NM_I(sbi)->dirty_nat_cnt == 0 && in f2fs_write_checkpoint()
56 return (unsigned char *)NM_I(sbi); in __struct_ptr()
1469 static inline struct f2fs_nm_info *NM_I(struct f2fs_sb_info *sbi) in NM_I() function1594 kfree(NM_I(sbi)->nat_bits); in disable_nat_bits()1595 NM_I(sbi)->nat_bits = NULL; in disable_nat_bits()