Home
last modified time | relevance | path

Searched refs:NM_I (Results 1 – 7 of 7) sorted by relevance

/fs/f2fs/
Dnode.h129 return NM_I(sbi)->nat_cnt[DIRTY_NAT] >= 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[TOTAL_NAT] >= 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()
Ddebug.c148 si->nats = NM_I(sbi)->nat_cnt[TOTAL_NAT]; in update_general_status()
149 si->dirty_nats = NM_I(sbi)->nat_cnt[DIRTY_NAT]; 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()
235 si->base_mem += (NM_I(sbi)->nat_bits_blocks << F2FS_BLKSIZE_BITS); in update_mem_info()
236 si->base_mem += NM_I(sbi)->nat_blocks * in update_mem_info()
238 si->base_mem += NM_I(sbi)->nat_blocks / 8; in update_mem_info()
239 si->base_mem += NM_I(sbi)->nat_blocks * sizeof(unsigned short); in update_mem_info()
258 si->cache_mem += (NM_I(sbi)->nid_cnt[FREE_NID] + in update_mem_info()
[all …]
Dnode.c35 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()
358 struct f2fs_nm_info *nm_i = NM_I(sbi); in f2fs_need_dentry_mark()
375 struct f2fs_nm_info *nm_i = NM_I(sbi); in f2fs_is_checkpointed_node()
389 struct f2fs_nm_info *nm_i = NM_I(sbi); in f2fs_need_inode_block_update()
407 struct f2fs_nm_info *nm_i = NM_I(sbi); in cache_nat_entry()
431 struct f2fs_nm_info *nm_i = NM_I(sbi); in set_node_addr()
488 struct f2fs_nm_info *nm_i = NM_I(sbi); in f2fs_try_to_free_nats()
520 struct f2fs_nm_info *nm_i = NM_I(sbi); in f2fs_get_node_info()
[all …]
Dshrinker.c21 return NM_I(sbi)->nat_cnt[RECLAIMABLE_NAT]; in __count_nat_entries()
26 long count = NM_I(sbi)->nid_cnt[FREE_NID] - MAX_FREE_NIDS; in __count_free_nids()
Dcheckpoint.c247 NAT_BLOCK_OFFSET(NM_I(sbi)->max_nid))) in f2fs_ra_meta_pages()
1150 struct f2fs_nm_info *nm_i = NM_I(sbi); in __prepare_cp_block()
1312 sbi->blocks_per_seg - NM_I(sbi)->nat_bits_blocks) in update_ckpt_flags()
1408 struct f2fs_nm_info *nm_i = NM_I(sbi); in do_checkpoint()
1619 if (NM_I(sbi)->nat_cnt[DIRTY_NAT] == 0 && in f2fs_write_checkpoint()
Df2fs.h1793 static inline struct f2fs_nm_info *NM_I(struct f2fs_sb_info *sbi) in NM_I() function
1923 nat_bits = NM_I(sbi)->nat_bits; in disable_nat_bits()
1924 NM_I(sbi)->nat_bits = NULL; in disable_nat_bits()
3660 else if (blkaddr < NM_I(sbi)->nat_blkaddr) \
Dsysfs.c61 return (unsigned char *)NM_I(sbi); in __struct_ptr()