Lines Matching refs:base_mem
189 if (si->base_mem) in update_mem_info()
193 si->base_mem = sizeof(struct f2fs_stat_info); in update_mem_info()
196 si->base_mem += sizeof(struct f2fs_sb_info) + sbi->sb->s_blocksize; in update_mem_info()
197 si->base_mem += 2 * sizeof(struct f2fs_inode_info); in update_mem_info()
198 si->base_mem += sizeof(*sbi->ckpt); in update_mem_info()
201 si->base_mem += sizeof(struct f2fs_sm_info); in update_mem_info()
204 si->base_mem += sizeof(struct sit_info); in update_mem_info()
205 si->base_mem += MAIN_SEGS(sbi) * sizeof(struct seg_entry); in update_mem_info()
206 si->base_mem += f2fs_bitmap_size(MAIN_SEGS(sbi)); in update_mem_info()
207 si->base_mem += 2 * SIT_VBLOCK_MAP_SIZE * MAIN_SEGS(sbi); in update_mem_info()
208 si->base_mem += SIT_VBLOCK_MAP_SIZE * MAIN_SEGS(sbi); in update_mem_info()
209 si->base_mem += SIT_VBLOCK_MAP_SIZE; in update_mem_info()
211 si->base_mem += MAIN_SECS(sbi) * sizeof(struct sec_entry); in update_mem_info()
212 si->base_mem += __bitmap_size(sbi, SIT_BITMAP); in update_mem_info()
215 si->base_mem += sizeof(struct free_segmap_info); in update_mem_info()
216 si->base_mem += f2fs_bitmap_size(MAIN_SEGS(sbi)); in update_mem_info()
217 si->base_mem += f2fs_bitmap_size(MAIN_SECS(sbi)); in update_mem_info()
220 si->base_mem += sizeof(struct curseg_info) * NR_CURSEG_TYPE; in update_mem_info()
221 si->base_mem += PAGE_SIZE * NR_CURSEG_TYPE; in update_mem_info()
224 si->base_mem += sizeof(struct dirty_seglist_info); in update_mem_info()
225 si->base_mem += NR_DIRTY_TYPE * f2fs_bitmap_size(MAIN_SEGS(sbi)); in update_mem_info()
226 si->base_mem += f2fs_bitmap_size(MAIN_SECS(sbi)); in update_mem_info()
229 si->base_mem += sizeof(struct f2fs_nm_info); in update_mem_info()
230 si->base_mem += __bitmap_size(sbi, NAT_BITMAP); in update_mem_info()
231 si->base_mem += (NM_I(sbi)->nat_bits_blocks << F2FS_BLKSIZE_BITS); in update_mem_info()
232 si->base_mem += NM_I(sbi)->nat_blocks * in update_mem_info()
234 si->base_mem += NM_I(sbi)->nat_blocks / 8; in update_mem_info()
235 si->base_mem += NM_I(sbi)->nat_blocks * sizeof(unsigned short); in update_mem_info()
451 (si->base_mem + si->cache_mem + si->page_mem) >> 10); in stat_show()
453 si->base_mem >> 10); in stat_show()