Lines Matching refs:si
34 struct f2fs_stat_info *si = F2FS_STAT(sbi); in f2fs_update_sit_info() local
55 si->bimodal = div64_u64(bimodal, dist); in f2fs_update_sit_info()
56 if (si->dirty_count) in f2fs_update_sit_info()
57 si->avg_vblocks = div_u64(total_vblocks, ndirty); in f2fs_update_sit_info()
59 si->avg_vblocks = 0; in f2fs_update_sit_info()
65 struct f2fs_stat_info *si = F2FS_STAT(sbi); in update_general_status() local
70 si->main_area_segs = le32_to_cpu(raw_super->segment_count_main); in update_general_status()
71 si->main_area_sections = le32_to_cpu(raw_super->section_count); in update_general_status()
72 si->main_area_zones = si->main_area_sections / in update_general_status()
79 si->hit_cached[i] = atomic64_read(&sbi->read_hit_cached[i]); in update_general_status()
80 si->hit_rbtree[i] = atomic64_read(&sbi->read_hit_rbtree[i]); in update_general_status()
81 si->total_ext[i] = atomic64_read(&sbi->total_hit_ext[i]); in update_general_status()
82 si->hit_total[i] = si->hit_cached[i] + si->hit_rbtree[i]; in update_general_status()
83 si->ext_tree[i] = atomic_read(&eti->total_ext_tree); in update_general_status()
84 si->zombie_tree[i] = atomic_read(&eti->total_zombie_tree); in update_general_status()
85 si->ext_node[i] = atomic_read(&eti->total_ext_node); in update_general_status()
88 si->hit_largest = atomic64_read(&sbi->read_hit_largest); in update_general_status()
89 si->hit_total[EX_READ] += si->hit_largest; in update_general_status()
92 si->allocated_data_blocks = atomic64_read(&sbi->allocated_data_blocks); in update_general_status()
95 si->ndirty_node = get_pages(sbi, F2FS_DIRTY_NODES); in update_general_status()
96 si->ndirty_dent = get_pages(sbi, F2FS_DIRTY_DENTS); in update_general_status()
97 si->ndirty_meta = get_pages(sbi, F2FS_DIRTY_META); in update_general_status()
98 si->ndirty_data = get_pages(sbi, F2FS_DIRTY_DATA); in update_general_status()
99 si->ndirty_qdata = get_pages(sbi, F2FS_DIRTY_QDATA); in update_general_status()
100 si->ndirty_imeta = get_pages(sbi, F2FS_DIRTY_IMETA); in update_general_status()
101 si->ndirty_dirs = sbi->ndirty_inode[DIR_INODE]; in update_general_status()
102 si->ndirty_files = sbi->ndirty_inode[FILE_INODE]; in update_general_status()
103 si->nquota_files = sbi->nquota_files; in update_general_status()
104 si->ndirty_all = sbi->ndirty_inode[DIRTY_META]; in update_general_status()
105 si->aw_cnt = atomic_read(&sbi->atomic_files); in update_general_status()
106 si->max_aw_cnt = atomic_read(&sbi->max_aw_cnt); in update_general_status()
107 si->nr_dio_read = get_pages(sbi, F2FS_DIO_READ); in update_general_status()
108 si->nr_dio_write = get_pages(sbi, F2FS_DIO_WRITE); in update_general_status()
109 si->nr_wb_cp_data = get_pages(sbi, F2FS_WB_CP_DATA); in update_general_status()
110 si->nr_wb_data = get_pages(sbi, F2FS_WB_DATA); in update_general_status()
111 si->nr_rd_data = get_pages(sbi, F2FS_RD_DATA); in update_general_status()
112 si->nr_rd_node = get_pages(sbi, F2FS_RD_NODE); in update_general_status()
113 si->nr_rd_meta = get_pages(sbi, F2FS_RD_META); in update_general_status()
115 si->nr_flushed = in update_general_status()
117 si->nr_flushing = in update_general_status()
119 si->flush_list_empty = in update_general_status()
123 si->nr_discarded = in update_general_status()
125 si->nr_discarding = in update_general_status()
127 si->nr_discard_cmd = in update_general_status()
129 si->undiscard_blks = SM_I(sbi)->dcc_info->undiscard_blks; in update_general_status()
131 si->nr_issued_ckpt = atomic_read(&sbi->cprc_info.issued_ckpt); in update_general_status()
132 si->nr_total_ckpt = atomic_read(&sbi->cprc_info.total_ckpt); in update_general_status()
133 si->nr_queued_ckpt = atomic_read(&sbi->cprc_info.queued_ckpt); in update_general_status()
135 si->cur_ckpt_time = sbi->cprc_info.cur_time; in update_general_status()
136 si->peak_ckpt_time = sbi->cprc_info.peak_time; in update_general_status()
138 si->total_count = (int)sbi->user_block_count / sbi->blocks_per_seg; in update_general_status()
139 si->rsvd_segs = reserved_segments(sbi); in update_general_status()
140 si->overp_segs = overprovision_segments(sbi); in update_general_status()
141 si->valid_count = valid_user_blocks(sbi); in update_general_status()
142 si->discard_blks = discard_blocks(sbi); in update_general_status()
143 si->valid_node_count = valid_node_count(sbi); in update_general_status()
144 si->valid_inode_count = valid_inode_count(sbi); in update_general_status()
145 si->inline_xattr = atomic_read(&sbi->inline_xattr); in update_general_status()
146 si->inline_inode = atomic_read(&sbi->inline_inode); in update_general_status()
147 si->inline_dir = atomic_read(&sbi->inline_dir); in update_general_status()
148 si->compr_inode = atomic_read(&sbi->compr_inode); in update_general_status()
149 si->swapfile_inode = atomic_read(&sbi->swapfile_inode); in update_general_status()
150 si->compr_blocks = atomic64_read(&sbi->compr_blocks); in update_general_status()
151 si->append = sbi->im[APPEND_INO].ino_num; in update_general_status()
152 si->update = sbi->im[UPDATE_INO].ino_num; in update_general_status()
153 si->orphans = sbi->im[ORPHAN_INO].ino_num; in update_general_status()
154 si->utilization = utilization(sbi); in update_general_status()
156 si->free_segs = free_segments(sbi); in update_general_status()
157 si->free_secs = free_sections(sbi); in update_general_status()
158 si->prefree_count = prefree_segments(sbi); in update_general_status()
159 si->dirty_count = dirty_segments(sbi); in update_general_status()
161 si->node_pages = NODE_MAPPING(sbi)->nrpages; in update_general_status()
163 si->meta_pages = META_MAPPING(sbi)->nrpages; in update_general_status()
166 si->compress_pages = COMPRESS_MAPPING(sbi)->nrpages; in update_general_status()
167 si->compress_page_hit = atomic_read(&sbi->compress_page_hit); in update_general_status()
170 si->nats = NM_I(sbi)->nat_cnt[TOTAL_NAT]; in update_general_status()
171 si->dirty_nats = NM_I(sbi)->nat_cnt[DIRTY_NAT]; in update_general_status()
172 si->sits = MAIN_SEGS(sbi); in update_general_status()
173 si->dirty_sits = SIT_I(sbi)->dirty_sentries; in update_general_status()
174 si->free_nids = NM_I(sbi)->nid_cnt[FREE_NID]; in update_general_status()
175 si->avail_nids = NM_I(sbi)->available_nids; in update_general_status()
176 si->alloc_nids = NM_I(sbi)->nid_cnt[PREALLOC_NID]; in update_general_status()
177 si->io_skip_bggc = sbi->io_skip_bggc; in update_general_status()
178 si->other_skip_bggc = sbi->other_skip_bggc; in update_general_status()
179 si->util_free = (int)(free_user_blocks(sbi) >> sbi->log_blocks_per_seg) in update_general_status()
182 si->util_valid = (int)(written_block_count(sbi) >> in update_general_status()
186 si->util_invalid = 50 - si->util_free - si->util_valid; in update_general_status()
190 si->curseg[i] = curseg->segno; in update_general_status()
191 si->cursec[i] = GET_SEC_FROM_SEG(sbi, curseg->segno); in update_general_status()
192 si->curzone[i] = GET_ZONE_FROM_SEC(sbi, si->cursec[i]); in update_general_status()
196 si->meta_count[i] = atomic_read(&sbi->meta_count[i]); in update_general_status()
199 si->dirty_seg[i] = 0; in update_general_status()
200 si->full_seg[i] = 0; in update_general_status()
201 si->valid_blks[i] = 0; in update_general_status()
212 si->full_seg[type]++; in update_general_status()
214 si->dirty_seg[type]++; in update_general_status()
215 si->valid_blks[type] += blks; in update_general_status()
219 si->cp_call_count[i] = atomic_read(&sbi->cp_call_count[i]); in update_general_status()
222 si->segment_count[i] = sbi->segment_count[i]; in update_general_status()
223 si->block_count[i] = sbi->block_count[i]; in update_general_status()
226 si->inplace_count = atomic_read(&sbi->inplace_count); in update_general_status()
234 struct f2fs_stat_info *si = F2FS_STAT(sbi); in update_mem_info() local
237 if (si->base_mem) in update_mem_info()
241 si->base_mem = sizeof(struct f2fs_stat_info); in update_mem_info()
244 si->base_mem += sizeof(struct f2fs_sb_info) + sbi->sb->s_blocksize; in update_mem_info()
245 si->base_mem += 2 * sizeof(struct f2fs_inode_info); in update_mem_info()
246 si->base_mem += sizeof(*sbi->ckpt); in update_mem_info()
249 si->base_mem += sizeof(struct f2fs_sm_info); in update_mem_info()
252 si->base_mem += sizeof(struct sit_info); in update_mem_info()
253 si->base_mem += MAIN_SEGS(sbi) * sizeof(struct seg_entry); in update_mem_info()
254 si->base_mem += f2fs_bitmap_size(MAIN_SEGS(sbi)); in update_mem_info()
255 si->base_mem += 2 * SIT_VBLOCK_MAP_SIZE * MAIN_SEGS(sbi); in update_mem_info()
256 si->base_mem += SIT_VBLOCK_MAP_SIZE * MAIN_SEGS(sbi); in update_mem_info()
257 si->base_mem += SIT_VBLOCK_MAP_SIZE; in update_mem_info()
259 si->base_mem += MAIN_SECS(sbi) * sizeof(struct sec_entry); in update_mem_info()
260 si->base_mem += __bitmap_size(sbi, SIT_BITMAP); in update_mem_info()
263 si->base_mem += sizeof(struct free_segmap_info); in update_mem_info()
264 si->base_mem += f2fs_bitmap_size(MAIN_SEGS(sbi)); in update_mem_info()
265 si->base_mem += f2fs_bitmap_size(MAIN_SECS(sbi)); in update_mem_info()
268 si->base_mem += sizeof(struct curseg_info) * NR_CURSEG_TYPE; in update_mem_info()
269 si->base_mem += PAGE_SIZE * NR_CURSEG_TYPE; in update_mem_info()
272 si->base_mem += sizeof(struct dirty_seglist_info); in update_mem_info()
273 si->base_mem += NR_DIRTY_TYPE * f2fs_bitmap_size(MAIN_SEGS(sbi)); in update_mem_info()
274 si->base_mem += f2fs_bitmap_size(MAIN_SECS(sbi)); in update_mem_info()
277 si->base_mem += sizeof(struct f2fs_nm_info); in update_mem_info()
278 si->base_mem += __bitmap_size(sbi, NAT_BITMAP); in update_mem_info()
279 si->base_mem += (NM_I(sbi)->nat_bits_blocks << F2FS_BLKSIZE_BITS); in update_mem_info()
280 si->base_mem += NM_I(sbi)->nat_blocks * in update_mem_info()
282 si->base_mem += NM_I(sbi)->nat_blocks / 8; in update_mem_info()
283 si->base_mem += NM_I(sbi)->nat_blocks * sizeof(unsigned short); in update_mem_info()
286 si->cache_mem = 0; in update_mem_info()
290 si->cache_mem += sizeof(struct f2fs_gc_kthread); in update_mem_info()
294 si->cache_mem += sizeof(struct flush_cmd_control); in update_mem_info()
296 si->cache_mem += sizeof(struct discard_cmd_control); in update_mem_info()
297 si->cache_mem += sizeof(struct discard_cmd) * in update_mem_info()
302 si->cache_mem += (NM_I(sbi)->nid_cnt[FREE_NID] + in update_mem_info()
305 si->cache_mem += NM_I(sbi)->nat_cnt[TOTAL_NAT] * in update_mem_info()
307 si->cache_mem += NM_I(sbi)->nat_cnt[DIRTY_NAT] * in update_mem_info()
310 si->cache_mem += sbi->im[i].ino_num * sizeof(struct ino_entry); in update_mem_info()
315 si->ext_mem[i] = atomic_read(&eti->total_ext_tree) * in update_mem_info()
317 si->ext_mem[i] += atomic_read(&eti->total_ext_node) * in update_mem_info()
319 si->cache_mem += si->ext_mem[i]; in update_mem_info()
322 si->page_mem = 0; in update_mem_info()
326 si->page_mem += (unsigned long long)npages << PAGE_SHIFT; in update_mem_info()
331 si->page_mem += (unsigned long long)npages << PAGE_SHIFT; in update_mem_info()
337 si->page_mem += (unsigned long long)npages << PAGE_SHIFT; in update_mem_info()
374 struct f2fs_stat_info *si; in stat_show() local
379 list_for_each_entry(si, &f2fs_stat_list, stat_list) { in stat_show()
380 struct f2fs_sb_info *sbi = si->sbi; in stat_show()
396 si->sit_area_segs, si->nat_area_segs); in stat_show()
398 si->ssa_area_segs, si->main_area_segs); in stat_show()
400 si->overp_segs, si->rsvd_segs); in stat_show()
419 si->utilization, si->valid_count, si->discard_blks); in stat_show()
422 si->utilization, si->valid_count); in stat_show()
425 si->valid_node_count, si->valid_inode_count); in stat_show()
427 si->valid_node_count - si->valid_inode_count, in stat_show()
428 si->valid_count - si->valid_node_count); in stat_show()
430 si->inline_xattr); in stat_show()
432 si->inline_inode); in stat_show()
434 si->inline_dir); in stat_show()
436 si->compr_inode, si->compr_blocks); in stat_show()
438 si->swapfile_inode); in stat_show()
440 si->orphans, si->append, si->update); in stat_show()
442 si->main_area_segs, si->main_area_sections, in stat_show()
443 si->main_area_zones); in stat_show()
447 si->curseg[CURSEG_COLD_DATA], in stat_show()
448 si->cursec[CURSEG_COLD_DATA], in stat_show()
449 si->curzone[CURSEG_COLD_DATA], in stat_show()
450 si->dirty_seg[CURSEG_COLD_DATA], in stat_show()
451 si->full_seg[CURSEG_COLD_DATA], in stat_show()
452 si->valid_blks[CURSEG_COLD_DATA]); in stat_show()
454 si->curseg[CURSEG_WARM_DATA], in stat_show()
455 si->cursec[CURSEG_WARM_DATA], in stat_show()
456 si->curzone[CURSEG_WARM_DATA], in stat_show()
457 si->dirty_seg[CURSEG_WARM_DATA], in stat_show()
458 si->full_seg[CURSEG_WARM_DATA], in stat_show()
459 si->valid_blks[CURSEG_WARM_DATA]); in stat_show()
461 si->curseg[CURSEG_HOT_DATA], in stat_show()
462 si->cursec[CURSEG_HOT_DATA], in stat_show()
463 si->curzone[CURSEG_HOT_DATA], in stat_show()
464 si->dirty_seg[CURSEG_HOT_DATA], in stat_show()
465 si->full_seg[CURSEG_HOT_DATA], in stat_show()
466 si->valid_blks[CURSEG_HOT_DATA]); in stat_show()
468 si->curseg[CURSEG_HOT_NODE], in stat_show()
469 si->cursec[CURSEG_HOT_NODE], in stat_show()
470 si->curzone[CURSEG_HOT_NODE], in stat_show()
471 si->dirty_seg[CURSEG_HOT_NODE], in stat_show()
472 si->full_seg[CURSEG_HOT_NODE], in stat_show()
473 si->valid_blks[CURSEG_HOT_NODE]); in stat_show()
475 si->curseg[CURSEG_WARM_NODE], in stat_show()
476 si->cursec[CURSEG_WARM_NODE], in stat_show()
477 si->curzone[CURSEG_WARM_NODE], in stat_show()
478 si->dirty_seg[CURSEG_WARM_NODE], in stat_show()
479 si->full_seg[CURSEG_WARM_NODE], in stat_show()
480 si->valid_blks[CURSEG_WARM_NODE]); in stat_show()
482 si->curseg[CURSEG_COLD_NODE], in stat_show()
483 si->cursec[CURSEG_COLD_NODE], in stat_show()
484 si->curzone[CURSEG_COLD_NODE], in stat_show()
485 si->dirty_seg[CURSEG_COLD_NODE], in stat_show()
486 si->full_seg[CURSEG_COLD_NODE], in stat_show()
487 si->valid_blks[CURSEG_COLD_NODE]); in stat_show()
489 si->curseg[CURSEG_COLD_DATA_PINNED], in stat_show()
490 si->cursec[CURSEG_COLD_DATA_PINNED], in stat_show()
491 si->curzone[CURSEG_COLD_DATA_PINNED]); in stat_show()
493 si->curseg[CURSEG_ALL_DATA_ATGC], in stat_show()
494 si->cursec[CURSEG_ALL_DATA_ATGC], in stat_show()
495 si->curzone[CURSEG_ALL_DATA_ATGC]); in stat_show()
497 si->main_area_segs - si->dirty_count - in stat_show()
498 si->prefree_count - si->free_segs, in stat_show()
499 si->dirty_count); in stat_show()
501 si->prefree_count, si->free_segs, si->free_secs); in stat_show()
503 si->cp_call_count[TOTAL_CALL], in stat_show()
504 si->cp_call_count[BACKGROUND]); in stat_show()
505 seq_printf(s, "CP count: %d\n", si->cp_count); in stat_show()
506 seq_printf(s, " - cp blocks : %u\n", si->meta_count[META_CP]); in stat_show()
508 si->meta_count[META_SIT]); in stat_show()
510 si->meta_count[META_NAT]); in stat_show()
512 si->meta_count[META_SSA]); in stat_show()
514 seq_printf(s, " - Queued : %4d\n", si->nr_queued_ckpt); in stat_show()
515 seq_printf(s, " - Issued : %4d\n", si->nr_issued_ckpt); in stat_show()
516 seq_printf(s, " - Total : %4d\n", si->nr_total_ckpt); in stat_show()
517 seq_printf(s, " - Cur time : %4d(ms)\n", si->cur_ckpt_time); in stat_show()
518 seq_printf(s, " - Peak time : %4d(ms)\n", si->peak_ckpt_time); in stat_show()
520 si->gc_call_count[BACKGROUND] + in stat_show()
521 si->gc_call_count[FOREGROUND], in stat_show()
522 si->gc_call_count[BACKGROUND]); in stat_show()
525 si->gc_secs[DATA][BG_GC] + si->gc_secs[DATA][FG_GC], in stat_show()
526 si->gc_secs[DATA][BG_GC]); in stat_show()
528 si->gc_secs[NODE][BG_GC] + si->gc_secs[NODE][FG_GC], in stat_show()
529 si->gc_secs[NODE][BG_GC]); in stat_show()
532 si->gc_segs[DATA][BG_GC] + si->gc_segs[DATA][FG_GC], in stat_show()
533 si->gc_segs[DATA][BG_GC]); in stat_show()
535 si->gc_segs[NODE][BG_GC] + si->gc_segs[NODE][FG_GC], in stat_show()
536 si->gc_segs[NODE][BG_GC]); in stat_show()
547 seq_printf(s, "Try to move %d blocks (BG: %d)\n", si->tot_blks, in stat_show()
548 si->bg_data_blks + si->bg_node_blks); in stat_show()
549 seq_printf(s, " - data blocks : %d (%d)\n", si->data_blks, in stat_show()
550 si->bg_data_blks); in stat_show()
551 seq_printf(s, " - node blocks : %d (%d)\n", si->node_blks, in stat_show()
552 si->bg_node_blks); in stat_show()
554 si->io_skip_bggc, si->other_skip_bggc); in stat_show()
557 si->hit_largest, si->hit_cached[EX_READ], in stat_show()
558 si->hit_rbtree[EX_READ]); in stat_show()
560 !si->total_ext[EX_READ] ? 0 : in stat_show()
561 div64_u64(si->hit_total[EX_READ] * 100, in stat_show()
562 si->total_ext[EX_READ]), in stat_show()
563 si->hit_total[EX_READ], si->total_ext[EX_READ]); in stat_show()
565 si->ext_tree[EX_READ], si->zombie_tree[EX_READ], in stat_show()
566 si->ext_node[EX_READ]); in stat_show()
569 si->allocated_data_blocks); in stat_show()
571 si->hit_cached[EX_BLOCK_AGE], in stat_show()
572 si->hit_rbtree[EX_BLOCK_AGE]); in stat_show()
574 !si->total_ext[EX_BLOCK_AGE] ? 0 : in stat_show()
575 div64_u64(si->hit_total[EX_BLOCK_AGE] * 100, in stat_show()
576 si->total_ext[EX_BLOCK_AGE]), in stat_show()
577 si->hit_total[EX_BLOCK_AGE], in stat_show()
578 si->total_ext[EX_BLOCK_AGE]); in stat_show()
580 si->ext_tree[EX_BLOCK_AGE], in stat_show()
581 si->zombie_tree[EX_BLOCK_AGE], in stat_show()
582 si->ext_node[EX_BLOCK_AGE]); in stat_show()
585 si->nr_dio_read, si->nr_dio_write); in stat_show()
587 si->nr_rd_data, si->nr_rd_node, si->nr_rd_meta); in stat_show()
589 si->nr_wb_cp_data, si->nr_wb_data, in stat_show()
590 si->nr_flushing, si->nr_flushed, in stat_show()
591 si->flush_list_empty); in stat_show()
593 si->nr_discarding, si->nr_discarded, in stat_show()
594 si->nr_discard_cmd, si->undiscard_blks); in stat_show()
596 si->aw_cnt, si->max_aw_cnt); in stat_show()
597 seq_printf(s, " - compress: %4d, hit:%8d\n", si->compress_pages, si->compress_page_hit); in stat_show()
599 si->ndirty_node, si->node_pages); in stat_show()
601 si->ndirty_dent, si->ndirty_dirs, si->ndirty_all); in stat_show()
603 si->ndirty_data, si->ndirty_files); in stat_show()
605 si->ndirty_qdata, si->nquota_files); in stat_show()
607 si->ndirty_meta, si->meta_pages); in stat_show()
609 si->ndirty_imeta); in stat_show()
614 si->dirty_nats, si->nats, si->dirty_sits, si->sits); in stat_show()
616 si->free_nids, si->avail_nids, si->alloc_nids); in stat_show()
621 for (j = 0; j < si->util_valid; j++) in stat_show()
625 for (j = 0; j < si->util_invalid; j++) in stat_show()
629 for (j = 0; j < si->util_free; j++) in stat_show()
632 seq_printf(s, "IPU: %u blocks\n", si->inplace_count); in stat_show()
634 si->block_count[SSR], si->segment_count[SSR]); in stat_show()
636 si->block_count[LFS], si->segment_count[LFS]); in stat_show()
641 si->bimodal, si->avg_vblocks); in stat_show()
646 (si->base_mem + si->cache_mem + si->page_mem) >> 10); in stat_show()
648 si->base_mem >> 10); in stat_show()
650 si->cache_mem >> 10); in stat_show()
652 si->ext_mem[EX_READ] >> 10); in stat_show()
654 si->ext_mem[EX_BLOCK_AGE] >> 10); in stat_show()
656 si->page_mem >> 10); in stat_show()
668 struct f2fs_stat_info *si; in f2fs_build_stats() local
672 si = f2fs_kzalloc(sbi, sizeof(struct f2fs_stat_info), GFP_KERNEL); in f2fs_build_stats()
673 if (!si) in f2fs_build_stats()
676 si->all_area_segs = le32_to_cpu(raw_super->segment_count); in f2fs_build_stats()
677 si->sit_area_segs = le32_to_cpu(raw_super->segment_count_sit); in f2fs_build_stats()
678 si->nat_area_segs = le32_to_cpu(raw_super->segment_count_nat); in f2fs_build_stats()
679 si->ssa_area_segs = le32_to_cpu(raw_super->segment_count_ssa); in f2fs_build_stats()
680 si->main_area_segs = le32_to_cpu(raw_super->segment_count_main); in f2fs_build_stats()
681 si->main_area_sections = le32_to_cpu(raw_super->section_count); in f2fs_build_stats()
682 si->main_area_zones = si->main_area_sections / in f2fs_build_stats()
684 si->sbi = sbi; in f2fs_build_stats()
685 sbi->stat_info = si; in f2fs_build_stats()
713 list_add_tail(&si->stat_list, &f2fs_stat_list); in f2fs_build_stats()
721 struct f2fs_stat_info *si = F2FS_STAT(sbi); in f2fs_destroy_stats() local
725 list_del(&si->stat_list); in f2fs_destroy_stats()
728 kfree(si); in f2fs_destroy_stats()