| /fs/bcachefs/ |
| A D | time_stats.c | 85 stats->max_duration = max(stats->max_duration, duration); in time_stats_update_one() 86 stats->min_duration = min(stats->min_duration, duration); in time_stats_update_one() 93 if (stats->last_event && time_after64(end, stats->last_event)) { in time_stats_update_one() 98 stats->max_freq = max(stats->max_freq, freq); in time_stats_update_one() 99 stats->min_freq = min(stats->min_freq, freq); in time_stats_update_one() 102 stats->last_event = end; in time_stats_update_one() 133 if (!stats->buffer && in __bch2_time_stats_update() 136 stats->buffer = in __bch2_time_stats_update() 162 memset((void *) stats + offset, 0, sizeof(*stats) - offset); in bch2_time_stats_reset() 176 stats->buffer = NULL; in bch2_time_stats_exit() [all …]
|
| A D | time_stats.h | 94 struct bch2_time_stats stats; member 100 return stats->have_quantiles in time_stats_to_quantiles() 101 ? &container_of(stats, struct bch2_time_stats_quantiles, stats)->quantiles in time_stats_to_quantiles() 118 __bch2_time_stats_update(stats, start, local_clock()); in bch2_time_stats_update() 132 if (v != !!stats->last_event_start) { in track_event_change() 134 bch2_time_stats_update(stats, stats->last_event_start); in track_event_change() 135 stats->last_event_start = 0; in track_event_change() 137 stats->last_event_start = local_clock() ?: 1; in track_event_change() 152 bch2_time_stats_exit(&statq->stats); in bch2_time_stats_quantiles_exit() 156 bch2_time_stats_init(&statq->stats); in bch2_time_stats_quantiles_init() [all …]
|
| A D | move.c | 176 if (ctxt->stats) { in move_write() 306 ctxt->stats = stats; in bch2_moving_ctxt_init() 329 memset(stats, 0, sizeof(*stats)); in bch2_move_stats_init() 331 scnprintf(stats->name, sizeof(stats->name), "%s", name); in bch2_move_stats_init() 349 if (ctxt->stats) in bch2_move_extent() 402 if (ctxt->stats) { in bch2_move_extent() 727 if (ctxt->stats) in bch2_move_data_btree() 796 if (ctxt->stats) in bch2_move_data_btree() 1368 stats, in bch2_data_job() 1381 stats, in bch2_data_job() [all …]
|
| A D | util.c | 385 if (stats->buffer) { in bch2_time_stats_to_text() 388 spin_lock_irq(&stats->lock); in bch2_time_stats_to_text() 390 __bch2_time_stats_clear_buffer(stats, per_cpu_ptr(stats->buffer, cpu)); in bch2_time_stats_to_text() 391 spin_unlock_irq(&stats->lock); in bch2_time_stats_to_text() 397 if (stats->freq_stats.n) { in bch2_time_stats_to_text() 398 f_mean = mean_and_variance_get_mean(stats->freq_stats); in bch2_time_stats_to_text() 426 pr_name_and_units(out, "min:", stats->min_duration); in bch2_time_stats_to_text() 427 pr_name_and_units(out, "max:", stats->max_duration); in bch2_time_stats_to_text() 428 pr_name_and_units(out, "total:", stats->total_duration); in bch2_time_stats_to_text() 447 pr_name_and_units(out, "min:", stats->min_freq); in bch2_time_stats_to_text() [all …]
|
| A D | chardev.c | 308 struct bch_move_stats stats; member 315 ctx->thr.ret = bch2_data_job(ctx->c, &ctx->stats, ctx->arg); in bch2_data_thread() 317 ctx->stats.ret = BCH_IOCTL_DATA_EVENT_RET_device_offline; in bch2_data_thread() 319 ctx->stats.ret = BCH_IOCTL_DATA_EVENT_RET_done; in bch2_data_thread() 320 ctx->stats.data_type = (int) DATA_PROGRESS_DATA_TYPE_done; in bch2_data_thread() 342 .ret = ctx->stats.ret, in bch2_data_job_read() 343 .p.data_type = ctx->stats.data_type, in bch2_data_job_read() 344 .p.btree_id = ctx->stats.pos.btree, in bch2_data_job_read() 345 .p.pos = ctx->stats.pos.pos, in bch2_data_job_read() 346 .p.sectors_done = atomic64_read(&ctx->stats.sectors_seen), in bch2_data_job_read() [all …]
|
| A D | movinggc.c | 217 u64 sectors_seen = atomic64_read(&ctxt->stats->sectors_seen); in bch2_copygc() 218 u64 sectors_moved = atomic64_read(&ctxt->stats->sectors_moved); in bch2_copygc() 248 sectors_seen = atomic64_read(&ctxt->stats->sectors_seen) - sectors_seen; in bch2_copygc() 249 sectors_moved = atomic64_read(&ctxt->stats->sectors_moved) - sectors_moved; in bch2_copygc()
|
| /fs/ocfs2/ |
| A D | blockcheck.c | 234 if (stats) { in ocfs2_blockcheck_debug_remove() 246 stats->b_debug_dir = dir; in ocfs2_blockcheck_debug_install() 285 if (!stats) in ocfs2_blockcheck_inc_check() 288 spin_lock(&stats->b_lock); in ocfs2_blockcheck_inc_check() 289 stats->b_check_count++; in ocfs2_blockcheck_inc_check() 301 if (!stats) in ocfs2_blockcheck_inc_failure() 304 spin_lock(&stats->b_lock); in ocfs2_blockcheck_inc_failure() 305 stats->b_failure_count++; in ocfs2_blockcheck_inc_failure() 317 if (!stats) in ocfs2_blockcheck_inc_recover() 320 spin_lock(&stats->b_lock); in ocfs2_blockcheck_inc_recover() [all …]
|
| A D | blockcheck.h | 46 struct ocfs2_blockcheck_stats *stats); 51 struct ocfs2_blockcheck_stats *stats); 54 void ocfs2_blockcheck_stats_debugfs_install(struct ocfs2_blockcheck_stats *stats, 56 void ocfs2_blockcheck_stats_debugfs_remove(struct ocfs2_blockcheck_stats *stats);
|
| A D | ioctl.c | 413 static void o2ffg_update_stats(struct ocfs2_info_freefrag_stats *stats, in o2ffg_update_stats() argument 416 if (chunksize > stats->ffs_max) in o2ffg_update_stats() 417 stats->ffs_max = chunksize; in o2ffg_update_stats() 419 if (chunksize < stats->ffs_min) in o2ffg_update_stats() 420 stats->ffs_min = chunksize; in o2ffg_update_stats() 422 stats->ffs_avg += chunksize; in o2ffg_update_stats() 423 stats->ffs_free_chunks_real++; in o2ffg_update_stats()
|
| A D | super.c | 108 struct ocfs2_blockcheck_stats *stats); 112 struct ocfs2_blockcheck_stats *stats); 728 struct ocfs2_blockcheck_stats *stats) in ocfs2_sb_probe() argument 795 spin_lock_init(&stats->b_lock); in ocfs2_sb_probe() 796 tmpstat = ocfs2_verify_volume(di, *bh, blksize, stats); in ocfs2_sb_probe() 982 struct ocfs2_blockcheck_stats stats; in ocfs2_fill_super() local 987 status = ocfs2_sb_probe(sb, &bh, §or_size, &stats); in ocfs2_fill_super() 1947 struct ocfs2_blockcheck_stats *stats) in ocfs2_initialize_super() argument 2009 osb->osb_ecc_stats = *stats; in ocfs2_initialize_super() 2267 struct ocfs2_blockcheck_stats *stats) in ocfs2_verify_volume() argument [all …]
|
| /fs/cachefiles/ |
| A D | cache.c | 21 struct kstatfs stats; in cachefiles_add_cache() local 88 if (stats.f_bsize <= 0) in cachefiles_add_cache() 95 cache->bsize = stats.f_bsize; in cachefiles_add_cache() 106 do_div(stats.f_files, 100); in cachefiles_add_cache() 116 do_div(stats.f_blocks, 100); in cachefiles_add_cache() 189 struct kstatfs stats; in cachefiles_has_space() local 208 memset(&stats, 0, sizeof(stats)); in cachefiles_has_space() 220 b_avail = stats.f_bavail; in cachefiles_has_space() 232 if (stats.f_ffree > fnr) in cachefiles_has_space() 233 stats.f_ffree -= fnr; in cachefiles_has_space() [all …]
|
| /fs/xfs/ |
| A D | xfs_stats.c | 10 static int counter_val(struct xfsstats __percpu *stats, int idx) in counter_val() argument 15 val += *(((__u32 *)per_cpu_ptr(stats, cpu) + idx)); in counter_val() 19 int xfs_stats_format(struct xfsstats __percpu *stats, char *buf) in xfs_stats_format() argument 71 counter_val(stats, j)); in xfs_stats_format() 77 xs_write_bytes += per_cpu_ptr(stats, i)->s.xs_write_bytes; in xfs_stats_format() 78 xs_read_bytes += per_cpu_ptr(stats, i)->s.xs_read_bytes; in xfs_stats_format() 79 defer_relog += per_cpu_ptr(stats, i)->s.defer_relog; in xfs_stats_format() 96 void xfs_stats_clearall(struct xfsstats __percpu *stats) in xfs_stats_clearall() argument 105 vn_active = per_cpu_ptr(stats, c)->s.vn_active; in xfs_stats_clearall() 106 memset(per_cpu_ptr(stats, c), 0, sizeof(*stats)); in xfs_stats_clearall() [all …]
|
| A D | xfs_sysfs.c | 352 struct xstats *stats = to_xstats(kobject); in stats_show() local 354 return xfs_stats_format(stats->xs_stats, buf); in stats_show() 356 XFS_SYSFS_ATTR_RO(stats); 366 struct xstats *stats = to_xstats(kobject); in stats_clear_store() local 375 xfs_stats_clearall(stats->xs_stats); in stats_clear_store() 381 ATTR_LIST(stats),
|
| /fs/jbd2/ |
| A D | commit.c | 444 stats.run.rs_request_delay = 0; in jbd2_journal_commit_transaction() 445 stats.run.rs_locked = jiffies; in jbd2_journal_commit_transaction() 447 stats.run.rs_request_delay = in jbd2_journal_commit_transaction() 449 stats.run.rs_locked); in jbd2_journal_commit_transaction() 451 stats.run.rs_locked); in jbd2_journal_commit_transaction() 529 stats.run.rs_locked = jbd2_time_diff(stats.run.rs_locked, in jbd2_journal_commit_transaction() 566 stats.run.rs_flushing = jbd2_time_diff(stats.run.rs_flushing, in jbd2_journal_commit_transaction() 814 stats.run.rs_blocks_logged++; in jbd2_journal_commit_transaction() 882 stats.run.rs_blocks_logged++; in jbd2_journal_commit_transaction() 1089 stats.run.rs_logging = jbd2_time_diff(stats.run.rs_logging, in jbd2_journal_commit_transaction() [all …]
|
| A D | journal.c | 1132 s->stats->ts_tid, s->stats->ts_requested, in jbd2_seq_info_show() 1137 jiffies_to_msecs(s->stats->run.rs_wait / s->stats->ts_tid)); in jbd2_seq_info_show() 1143 jiffies_to_msecs(s->stats->run.rs_running / s->stats->ts_tid)); in jbd2_seq_info_show() 1145 jiffies_to_msecs(s->stats->run.rs_locked / s->stats->ts_tid)); in jbd2_seq_info_show() 1147 jiffies_to_msecs(s->stats->run.rs_flushing / s->stats->ts_tid)); in jbd2_seq_info_show() 1149 jiffies_to_msecs(s->stats->run.rs_logging / s->stats->ts_tid)); in jbd2_seq_info_show() 1153 s->stats->run.rs_handle_count / s->stats->ts_tid); in jbd2_seq_info_show() 1155 s->stats->run.rs_blocks / s->stats->ts_tid); in jbd2_seq_info_show() 1157 s->stats->run.rs_blocks_logged / s->stats->ts_tid); in jbd2_seq_info_show() 1197 kfree(s->stats); in jbd2_seq_info_open() [all …]
|
| A D | checkpoint.c | 568 struct transaction_chp_stats_s *stats; in __jbd2_journal_remove_checkpoint() local 608 stats = &transaction->t_chp_stats; in __jbd2_journal_remove_checkpoint() 609 if (stats->cs_chp_time) in __jbd2_journal_remove_checkpoint() 610 stats->cs_chp_time = jbd2_time_diff(stats->cs_chp_time, in __jbd2_journal_remove_checkpoint() 613 transaction->t_tid, stats); in __jbd2_journal_remove_checkpoint()
|
| /fs/smb/client/ |
| A D | smb1ops.c | 746 atomic_set(&tcon->stats.cifs_stats.num_writes, 0); in cifs_clear_stats() 747 atomic_set(&tcon->stats.cifs_stats.num_reads, 0); in cifs_clear_stats() 748 atomic_set(&tcon->stats.cifs_stats.num_flushes, 0); in cifs_clear_stats() 750 atomic_set(&tcon->stats.cifs_stats.num_opens, 0); in cifs_clear_stats() 753 atomic_set(&tcon->stats.cifs_stats.num_closes, 0); in cifs_clear_stats() 755 atomic_set(&tcon->stats.cifs_stats.num_mkdirs, 0); in cifs_clear_stats() 756 atomic_set(&tcon->stats.cifs_stats.num_rmdirs, 0); in cifs_clear_stats() 759 atomic_set(&tcon->stats.cifs_stats.num_ffirst, 0); in cifs_clear_stats() 760 atomic_set(&tcon->stats.cifs_stats.num_fnext, 0); in cifs_clear_stats() 761 atomic_set(&tcon->stats.cifs_stats.num_fclose, 0); in cifs_clear_stats() [all …]
|
| /fs/ubifs/ |
| A D | sysfs.c | 57 return sysfs_emit(buf, "%u\n", sbi->stats->magic_errors); in ubifs_attr_show() 59 return sysfs_emit(buf, "%u\n", sbi->stats->node_errors); in ubifs_attr_show() 61 return sysfs_emit(buf, "%u\n", sbi->stats->crc_errors); in ubifs_attr_show() 96 c->stats = kzalloc(sizeof(struct ubifs_stats_info), GFP_KERNEL); in ubifs_sysfs_register() 97 if (!c->stats) { in ubifs_sysfs_register() 124 kfree(c->stats); in ubifs_sysfs_register() 137 kfree(c->stats); in ubifs_sysfs_unregister()
|
| A D | io.c | 199 if (stats) in record_magic_error() 200 stats->magic_errors++; in record_magic_error() 203 static void record_node_error(struct ubifs_stats_info *stats) in record_node_error() argument 205 if (stats) in record_node_error() 206 stats->node_errors++; in record_node_error() 209 static void record_crc_error(struct ubifs_stats_info *stats) in record_crc_error() argument 211 if (stats) in record_crc_error() 212 stats->crc_errors++; in record_crc_error() 259 record_magic_error(c->stats); in ubifs_check_node() 268 record_node_error(c->stats); in ubifs_check_node() [all …]
|
| /fs/netfs/ |
| A D | Kconfig | 17 /proc/fs/fscache/stats 20 execution as there are a quite a few stats gathered, and on a 22 between CPUs. On the other hand, the stats are very useful for 52 /proc/fs/fscache/stats 55 execution as there are a quite a few stats gathered, and on a 57 between CPUs. On the other hand, the stats are very useful for
|
| /fs/ext4/ |
| A D | ialloc.c | 395 stats->free_inodes = 0; in get_orlov_stats() 396 stats->free_clusters = 0; in get_orlov_stats() 397 stats->used_dirs = 0; in get_orlov_stats() 437 struct orlov_stats stats; in find_group_orlov() local 471 if (!stats.free_inodes) in find_group_orlov() 473 if (stats.used_dirs >= best_ndir) in find_group_orlov() 475 if (stats.free_inodes < avefreei) in find_group_orlov() 477 if (stats.free_clusters < avefreec) in find_group_orlov() 481 best_ndir = stats.used_dirs; in find_group_orlov() 532 if (stats.used_dirs >= max_dirs) in find_group_orlov() [all …]
|
| A D | fast_commit.c | 1172 stats->fc_num_commits++; in ext4_fc_update_stats() 1173 stats->fc_numblks += nblks; in ext4_fc_update_stats() 1174 if (likely(stats->s_fc_avg_commit_time)) in ext4_fc_update_stats() 1175 stats->s_fc_avg_commit_time = in ext4_fc_update_stats() 1177 stats->s_fc_avg_commit_time * 3) / 4; in ext4_fc_update_stats() 1183 stats->fc_failed_commits++; in ext4_fc_update_stats() 1184 stats->fc_ineligible_commits++; in ext4_fc_update_stats() 1186 stats->fc_skipped_commits++; in ext4_fc_update_stats() 2318 stats->fc_num_commits, stats->fc_ineligible_commits, in ext4_fc_info_show() 2319 stats->fc_numblks, in ext4_fc_info_show() [all …]
|
| /fs/nfs/ |
| A D | iostat.h | 55 static inline void nfs_free_iostats(struct nfs_iostats __percpu *stats) in nfs_free_iostats() argument 57 if (stats != NULL) in nfs_free_iostats() 58 free_percpu(stats); in nfs_free_iostats()
|
| /fs/nilfs2/ |
| A D | btree.c | 1072 stats->bs_nblocks = 0; in nilfs_btree_prepare_insert() 1094 stats->bs_nblocks++; in nilfs_btree_prepare_insert() 1150 stats->bs_nblocks++; in nilfs_btree_prepare_insert() 1163 stats->bs_nblocks++; in nilfs_btree_prepare_insert() 1206 stats->bs_nblocks = 0; in nilfs_btree_prepare_insert() 1446 stats->bs_nblocks = 0; in nilfs_btree_prepare_delete() 1463 stats->bs_nblocks++; in nilfs_btree_prepare_delete() 1539 stats->bs_nblocks++; in nilfs_btree_prepare_delete() 1770 stats->bs_nblocks++; in nilfs_btree_prepare_convert_and_insert() 1782 stats->bs_nblocks++; in nilfs_btree_prepare_convert_and_insert() [all …]
|
| /fs/gfs2/ |
| A D | trace_gfs2.h | 293 __entry->srtt = gl->gl_stats.stats[GFS2_LKS_SRTT]; 294 __entry->srttvar = gl->gl_stats.stats[GFS2_LKS_SRTTVAR]; 295 __entry->srttb = gl->gl_stats.stats[GFS2_LKS_SRTTB]; 296 __entry->srttvarb = gl->gl_stats.stats[GFS2_LKS_SRTTVARB]; 297 __entry->sirt = gl->gl_stats.stats[GFS2_LKS_SIRT]; 298 __entry->sirtvar = gl->gl_stats.stats[GFS2_LKS_SIRTVAR]; 299 __entry->dcount = gl->gl_stats.stats[GFS2_LKS_DCOUNT]; 300 __entry->qcount = gl->gl_stats.stats[GFS2_LKS_QCOUNT];
|