Lines Matching refs:base_mem

236 	if (si->base_mem)  in update_mem_info()
240 si->base_mem = sizeof(struct f2fs_stat_info); in update_mem_info()
243 si->base_mem += sizeof(struct f2fs_sb_info) + sbi->sb->s_blocksize; in update_mem_info()
244 si->base_mem += 2 * sizeof(struct f2fs_inode_info); in update_mem_info()
245 si->base_mem += sizeof(*sbi->ckpt); in update_mem_info()
248 si->base_mem += sizeof(struct f2fs_sm_info); in update_mem_info()
251 si->base_mem += sizeof(struct sit_info); in update_mem_info()
252 si->base_mem += MAIN_SEGS(sbi) * sizeof(struct seg_entry); in update_mem_info()
253 si->base_mem += f2fs_bitmap_size(MAIN_SEGS(sbi)); in update_mem_info()
254 si->base_mem += 2 * SIT_VBLOCK_MAP_SIZE * MAIN_SEGS(sbi); in update_mem_info()
255 si->base_mem += SIT_VBLOCK_MAP_SIZE * MAIN_SEGS(sbi); in update_mem_info()
256 si->base_mem += SIT_VBLOCK_MAP_SIZE; in update_mem_info()
258 si->base_mem += MAIN_SECS(sbi) * sizeof(struct sec_entry); in update_mem_info()
259 si->base_mem += __bitmap_size(sbi, SIT_BITMAP); in update_mem_info()
262 si->base_mem += sizeof(struct free_segmap_info); in update_mem_info()
263 si->base_mem += f2fs_bitmap_size(MAIN_SEGS(sbi)); in update_mem_info()
264 si->base_mem += f2fs_bitmap_size(MAIN_SECS(sbi)); in update_mem_info()
267 si->base_mem += sizeof(struct curseg_info) * NR_CURSEG_TYPE; in update_mem_info()
268 si->base_mem += PAGE_SIZE * NR_CURSEG_TYPE; in update_mem_info()
271 si->base_mem += sizeof(struct dirty_seglist_info); in update_mem_info()
272 si->base_mem += NR_DIRTY_TYPE * f2fs_bitmap_size(MAIN_SEGS(sbi)); in update_mem_info()
273 si->base_mem += f2fs_bitmap_size(MAIN_SECS(sbi)); in update_mem_info()
276 si->base_mem += sizeof(struct f2fs_nm_info); in update_mem_info()
277 si->base_mem += __bitmap_size(sbi, NAT_BITMAP); in update_mem_info()
278 si->base_mem += F2FS_BLK_TO_BYTES(NM_I(sbi)->nat_bits_blocks); in update_mem_info()
279 si->base_mem += NM_I(sbi)->nat_blocks * in update_mem_info()
281 si->base_mem += NM_I(sbi)->nat_blocks / 8; in update_mem_info()
282 si->base_mem += NM_I(sbi)->nat_blocks * sizeof(unsigned short); in update_mem_info()
645 (si->base_mem + si->cache_mem + si->page_mem) >> 10); in stat_show()
647 si->base_mem >> 10); in stat_show()