Lines Matching refs:base_mem

223 	if (si->base_mem)  in update_mem_info()
227 si->base_mem = sizeof(struct f2fs_stat_info); in update_mem_info()
230 si->base_mem += sizeof(struct f2fs_sb_info) + sbi->sb->s_blocksize; in update_mem_info()
231 si->base_mem += 2 * sizeof(struct f2fs_inode_info); in update_mem_info()
232 si->base_mem += sizeof(*sbi->ckpt); in update_mem_info()
235 si->base_mem += sizeof(struct f2fs_sm_info); in update_mem_info()
238 si->base_mem += sizeof(struct sit_info); in update_mem_info()
239 si->base_mem += MAIN_SEGS(sbi) * sizeof(struct seg_entry); in update_mem_info()
240 si->base_mem += f2fs_bitmap_size(MAIN_SEGS(sbi)); in update_mem_info()
241 si->base_mem += 2 * SIT_VBLOCK_MAP_SIZE * MAIN_SEGS(sbi); in update_mem_info()
242 si->base_mem += SIT_VBLOCK_MAP_SIZE * MAIN_SEGS(sbi); in update_mem_info()
243 si->base_mem += SIT_VBLOCK_MAP_SIZE; in update_mem_info()
245 si->base_mem += MAIN_SECS(sbi) * sizeof(struct sec_entry); in update_mem_info()
246 si->base_mem += __bitmap_size(sbi, SIT_BITMAP); in update_mem_info()
249 si->base_mem += sizeof(struct free_segmap_info); in update_mem_info()
250 si->base_mem += f2fs_bitmap_size(MAIN_SEGS(sbi)); in update_mem_info()
251 si->base_mem += f2fs_bitmap_size(MAIN_SECS(sbi)); in update_mem_info()
254 si->base_mem += sizeof(struct curseg_info) * NR_CURSEG_TYPE; in update_mem_info()
255 si->base_mem += PAGE_SIZE * NR_CURSEG_TYPE; in update_mem_info()
258 si->base_mem += sizeof(struct dirty_seglist_info); in update_mem_info()
259 si->base_mem += NR_DIRTY_TYPE * f2fs_bitmap_size(MAIN_SEGS(sbi)); in update_mem_info()
260 si->base_mem += f2fs_bitmap_size(MAIN_SECS(sbi)); in update_mem_info()
263 si->base_mem += sizeof(struct f2fs_nm_info); in update_mem_info()
264 si->base_mem += __bitmap_size(sbi, NAT_BITMAP); in update_mem_info()
265 si->base_mem += (NM_I(sbi)->nat_bits_blocks << F2FS_BLKSIZE_BITS); in update_mem_info()
266 si->base_mem += NM_I(sbi)->nat_blocks * in update_mem_info()
268 si->base_mem += NM_I(sbi)->nat_blocks / 8; in update_mem_info()
269 si->base_mem += NM_I(sbi)->nat_blocks * sizeof(unsigned short); in update_mem_info()
566 (si->base_mem + si->cache_mem + si->page_mem) >> 10); in stat_show()
568 si->base_mem >> 10); in stat_show()