/fs/ocfs2/ |
D | blockcheck.c | 232 static void ocfs2_blockcheck_debug_remove(struct ocfs2_blockcheck_stats *stats) in ocfs2_blockcheck_debug_remove() argument 234 if (stats) { in ocfs2_blockcheck_debug_remove() 235 debugfs_remove_recursive(stats->b_debug_dir); in ocfs2_blockcheck_debug_remove() 236 stats->b_debug_dir = NULL; in ocfs2_blockcheck_debug_remove() 240 static void ocfs2_blockcheck_debug_install(struct ocfs2_blockcheck_stats *stats, in ocfs2_blockcheck_debug_install() argument 246 stats->b_debug_dir = dir; in ocfs2_blockcheck_debug_install() 249 &stats->b_check_count, &blockcheck_fops); in ocfs2_blockcheck_debug_install() 252 &stats->b_failure_count, &blockcheck_fops); in ocfs2_blockcheck_debug_install() 255 &stats->b_recover_count, &blockcheck_fops); in ocfs2_blockcheck_debug_install() 259 static inline void ocfs2_blockcheck_debug_install(struct ocfs2_blockcheck_stats *stats, in ocfs2_blockcheck_debug_install() argument [all …]
|
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);
|
D | ioctl.c | 412 static void o2ffg_update_stats(struct ocfs2_info_freefrag_stats *stats, in o2ffg_update_stats() argument 415 if (chunksize > stats->ffs_max) in o2ffg_update_stats() 416 stats->ffs_max = chunksize; in o2ffg_update_stats() 418 if (chunksize < stats->ffs_min) in o2ffg_update_stats() 419 stats->ffs_min = chunksize; in o2ffg_update_stats() 421 stats->ffs_avg += chunksize; in o2ffg_update_stats() 422 stats->ffs_free_chunks_real++; in o2ffg_update_stats()
|
D | super.c | 112 struct ocfs2_blockcheck_stats *stats); 116 struct ocfs2_blockcheck_stats *stats); 726 struct ocfs2_blockcheck_stats *stats) in ocfs2_sb_probe() argument 792 memset(stats, 0, sizeof(struct ocfs2_blockcheck_stats)); in ocfs2_sb_probe() 793 spin_lock_init(&stats->b_lock); in ocfs2_sb_probe() 794 tmpstat = ocfs2_verify_volume(di, *bh, blksize, stats); in ocfs2_sb_probe() 980 struct ocfs2_blockcheck_stats stats; in ocfs2_fill_super() local 990 status = ocfs2_sb_probe(sb, &bh, §or_size, &stats); in ocfs2_fill_super() 996 status = ocfs2_initialize_super(sb, bh, sector_size, &stats); in ocfs2_fill_super() 2005 struct ocfs2_blockcheck_stats *stats) in ocfs2_initialize_super() argument [all …]
|
/fs/cachefiles/ |
D | bind.c | 85 struct kstatfs stats; in cachefiles_daemon_add_cache() local 146 ret = vfs_statfs(&path, &stats); in cachefiles_daemon_add_cache() 151 if (stats.f_bsize <= 0) in cachefiles_daemon_add_cache() 155 if (stats.f_bsize > PAGE_SIZE) in cachefiles_daemon_add_cache() 158 cache->bsize = stats.f_bsize; in cachefiles_daemon_add_cache() 160 if (stats.f_bsize < PAGE_SIZE) in cachefiles_daemon_add_cache() 161 cache->bshift = PAGE_SHIFT - ilog2(stats.f_bsize); in cachefiles_daemon_add_cache() 167 (unsigned long long) stats.f_blocks, in cachefiles_daemon_add_cache() 168 (unsigned long long) stats.f_bavail); in cachefiles_daemon_add_cache() 171 do_div(stats.f_files, 100); in cachefiles_daemon_add_cache() [all …]
|
D | daemon.c | 674 struct kstatfs stats; in cachefiles_has_space() local 691 memset(&stats, 0, sizeof(stats)); in cachefiles_has_space() 693 ret = vfs_statfs(&path, &stats); in cachefiles_has_space() 701 stats.f_bavail >>= cache->bshift; in cachefiles_has_space() 708 if (stats.f_ffree > fnr) in cachefiles_has_space() 709 stats.f_ffree -= fnr; in cachefiles_has_space() 711 stats.f_ffree = 0; in cachefiles_has_space() 713 if (stats.f_bavail > bnr) in cachefiles_has_space() 714 stats.f_bavail -= bnr; in cachefiles_has_space() 716 stats.f_bavail = 0; in cachefiles_has_space() [all …]
|
/fs/xfs/ |
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 66 counter_val(stats, j)); in xfs_stats_format() 71 xs_xstrat_bytes += per_cpu_ptr(stats, i)->s.xs_xstrat_bytes; in xfs_stats_format() 72 xs_write_bytes += per_cpu_ptr(stats, i)->s.xs_write_bytes; in xfs_stats_format() 73 xs_read_bytes += per_cpu_ptr(stats, i)->s.xs_read_bytes; in xfs_stats_format() 74 defer_relog += per_cpu_ptr(stats, i)->s.defer_relog; in xfs_stats_format() 91 void xfs_stats_clearall(struct xfsstats __percpu *stats) in xfs_stats_clearall() argument 100 vn_active = per_cpu_ptr(stats, c)->s.vn_active; in xfs_stats_clearall() [all …]
|
D | xfs_sysfs.c | 266 struct xstats *stats = to_xstats(kobject); in stats_show() local 268 return xfs_stats_format(stats->xs_stats, buf); in stats_show() 270 XFS_SYSFS_ATTR_RO(stats); 280 struct xstats *stats = to_xstats(kobject); in stats_clear_store() local 289 xfs_stats_clearall(stats->xs_stats); in stats_clear_store() 295 ATTR_LIST(stats),
|
D | xfs_stats.h | 159 int xfs_stats_format(struct xfsstats __percpu *stats, char *buf); 160 void xfs_stats_clearall(struct xfsstats __percpu *stats);
|
/fs/jbd2/ |
D | commit.c | 384 struct transaction_stats_s stats; in jbd2_journal_commit_transaction() local 478 stats.run.rs_wait = commit_transaction->t_max_wait; in jbd2_journal_commit_transaction() 479 stats.run.rs_request_delay = 0; in jbd2_journal_commit_transaction() 480 stats.run.rs_locked = jiffies; in jbd2_journal_commit_transaction() 482 stats.run.rs_request_delay = in jbd2_journal_commit_transaction() 484 stats.run.rs_locked); in jbd2_journal_commit_transaction() 485 stats.run.rs_running = jbd2_time_diff(commit_transaction->t_start, in jbd2_journal_commit_transaction() 486 stats.run.rs_locked); in jbd2_journal_commit_transaction() 563 stats.run.rs_flushing = jiffies; in jbd2_journal_commit_transaction() 564 stats.run.rs_locked = jbd2_time_diff(stats.run.rs_locked, in jbd2_journal_commit_transaction() [all …]
|
D | journal.c | 1155 struct transaction_stats_s *stats; member 1179 s->stats->ts_tid, s->stats->ts_requested, in jbd2_seq_info_show() 1181 if (s->stats->ts_tid == 0) in jbd2_seq_info_show() 1184 jiffies_to_msecs(s->stats->run.rs_wait / s->stats->ts_tid)); in jbd2_seq_info_show() 1186 (s->stats->ts_requested == 0) ? 0 : in jbd2_seq_info_show() 1187 jiffies_to_msecs(s->stats->run.rs_request_delay / in jbd2_seq_info_show() 1188 s->stats->ts_requested)); in jbd2_seq_info_show() 1190 jiffies_to_msecs(s->stats->run.rs_running / s->stats->ts_tid)); in jbd2_seq_info_show() 1192 jiffies_to_msecs(s->stats->run.rs_locked / s->stats->ts_tid)); in jbd2_seq_info_show() 1194 jiffies_to_msecs(s->stats->run.rs_flushing / s->stats->ts_tid)); in jbd2_seq_info_show() [all …]
|
D | checkpoint.c | 568 struct transaction_chp_stats_s *stats; in __jbd2_journal_remove_checkpoint() local 619 stats = &transaction->t_chp_stats; in __jbd2_journal_remove_checkpoint() 620 if (stats->cs_chp_time) in __jbd2_journal_remove_checkpoint() 621 stats->cs_chp_time = jbd2_time_diff(stats->cs_chp_time, in __jbd2_journal_remove_checkpoint() 624 transaction->t_tid, stats); in __jbd2_journal_remove_checkpoint()
|
/fs/cifs/ |
D | smb1ops.c | 618 atomic_set(&tcon->stats.cifs_stats.num_writes, 0); in cifs_clear_stats() 619 atomic_set(&tcon->stats.cifs_stats.num_reads, 0); in cifs_clear_stats() 620 atomic_set(&tcon->stats.cifs_stats.num_flushes, 0); in cifs_clear_stats() 621 atomic_set(&tcon->stats.cifs_stats.num_oplock_brks, 0); in cifs_clear_stats() 622 atomic_set(&tcon->stats.cifs_stats.num_opens, 0); in cifs_clear_stats() 623 atomic_set(&tcon->stats.cifs_stats.num_posixopens, 0); in cifs_clear_stats() 624 atomic_set(&tcon->stats.cifs_stats.num_posixmkdirs, 0); in cifs_clear_stats() 625 atomic_set(&tcon->stats.cifs_stats.num_closes, 0); in cifs_clear_stats() 626 atomic_set(&tcon->stats.cifs_stats.num_deletes, 0); in cifs_clear_stats() 627 atomic_set(&tcon->stats.cifs_stats.num_mkdirs, 0); in cifs_clear_stats() [all …]
|
/fs/ext4/ |
D | ialloc.c | 377 int flex_size, struct orlov_stats *stats) in get_orlov_stats() argument 384 stats->free_inodes = atomic_read(&fg->free_inodes); in get_orlov_stats() 385 stats->free_clusters = atomic64_read(&fg->free_clusters); in get_orlov_stats() 386 stats->used_dirs = atomic_read(&fg->used_dirs); in get_orlov_stats() 392 stats->free_inodes = ext4_free_inodes_count(sb, desc); in get_orlov_stats() 393 stats->free_clusters = ext4_free_group_clusters(sb, desc); in get_orlov_stats() 394 stats->used_dirs = ext4_used_dirs_count(sb, desc); in get_orlov_stats() 396 stats->free_inodes = 0; in get_orlov_stats() 397 stats->free_clusters = 0; in get_orlov_stats() 398 stats->used_dirs = 0; in get_orlov_stats() [all …]
|
D | fast_commit.c | 1114 struct ext4_fc_stats *stats = &EXT4_SB(sb)->s_fc_stats; in ext4_fc_update_stats() local 1118 stats->fc_num_commits++; in ext4_fc_update_stats() 1119 stats->fc_numblks += nblks; in ext4_fc_update_stats() 1120 if (likely(stats->s_fc_avg_commit_time)) in ext4_fc_update_stats() 1121 stats->s_fc_avg_commit_time = in ext4_fc_update_stats() 1123 stats->s_fc_avg_commit_time * 3) / 4; in ext4_fc_update_stats() 1125 stats->s_fc_avg_commit_time = commit_time; in ext4_fc_update_stats() 1129 stats->fc_failed_commits++; in ext4_fc_update_stats() 1130 stats->fc_ineligible_commits++; in ext4_fc_update_stats() 1132 stats->fc_skipped_commits++; in ext4_fc_update_stats() [all …]
|
/fs/nfs/ |
D | iostat.h | 71 static inline void nfs_free_iostats(struct nfs_iostats __percpu *stats) in nfs_free_iostats() argument 73 if (stats != NULL) in nfs_free_iostats() 74 free_percpu(stats); in nfs_free_iostats()
|
/fs/nilfs2/ |
D | btree.c | 1059 struct nilfs_bmap_stats *stats) in nilfs_btree_prepare_insert() argument 1067 stats->bs_nblocks = 0; in nilfs_btree_prepare_insert() 1089 stats->bs_nblocks++; in nilfs_btree_prepare_insert() 1107 stats->bs_nblocks++; in nilfs_btree_prepare_insert() 1125 stats->bs_nblocks++; in nilfs_btree_prepare_insert() 1145 stats->bs_nblocks++; in nilfs_btree_prepare_insert() 1158 stats->bs_nblocks++; in nilfs_btree_prepare_insert() 1181 stats->bs_nblocks += 2; in nilfs_btree_prepare_insert() 1201 stats->bs_nblocks = 0; in nilfs_btree_prepare_insert() 1232 struct nilfs_bmap_stats stats; in nilfs_btree_insert() local [all …]
|
/fs/netfs/ |
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
|
D | Makefile | 3 netfs-y := read_helper.o stats.o
|
/fs/fscache/ |
D | Kconfig | 22 /proc/fs/fscache/stats 25 execution as there are a quite a few stats gathered, and on a 27 between CPUs. On the other hand, the stats are very useful for
|
D | Makefile | 20 fscache-$(CONFIG_FSCACHE_STATS) += stats.o
|
/fs/gfs2/ |
D | trace_gfs2.h | 288 __entry->srtt = gl->gl_stats.stats[GFS2_LKS_SRTT]; 289 __entry->srttvar = gl->gl_stats.stats[GFS2_LKS_SRTTVAR]; 290 __entry->srttb = gl->gl_stats.stats[GFS2_LKS_SRTTB]; 291 __entry->srttvarb = gl->gl_stats.stats[GFS2_LKS_SRTTVARB]; 292 __entry->sirt = gl->gl_stats.stats[GFS2_LKS_SIRT]; 293 __entry->sirtvar = gl->gl_stats.stats[GFS2_LKS_SIRTVAR]; 294 __entry->dcount = gl->gl_stats.stats[GFS2_LKS_DCOUNT]; 295 __entry->qcount = gl->gl_stats.stats[GFS2_LKS_QCOUNT];
|
D | glock.c | 1160 gl->gl_stats.stats[GFS2_LKS_DCOUNT] = 0; in gfs2_glock_get() 1161 gl->gl_stats.stats[GFS2_LKS_QCOUNT] = 0; in gfs2_glock_get() 2381 (unsigned long long)gl->gl_stats.stats[GFS2_LKS_SRTT], in gfs2_glstats_seq_show() 2382 (unsigned long long)gl->gl_stats.stats[GFS2_LKS_SRTTVAR], in gfs2_glstats_seq_show() 2383 (unsigned long long)gl->gl_stats.stats[GFS2_LKS_SRTTB], in gfs2_glstats_seq_show() 2384 (unsigned long long)gl->gl_stats.stats[GFS2_LKS_SRTTVARB], in gfs2_glstats_seq_show() 2385 (unsigned long long)gl->gl_stats.stats[GFS2_LKS_SIRT], in gfs2_glstats_seq_show() 2386 (unsigned long long)gl->gl_stats.stats[GFS2_LKS_SIRTVAR], in gfs2_glstats_seq_show() 2387 (unsigned long long)gl->gl_stats.stats[GFS2_LKS_DCOUNT], in gfs2_glstats_seq_show() 2388 (unsigned long long)gl->gl_stats.stats[GFS2_LKS_QCOUNT]); in gfs2_glstats_seq_show() [all …]
|
/fs/ksmbd/ |
D | vfs_cache.c | 363 atomic_dec(&work->conn->stats.open_files_count); in __put_fd_final() 598 atomic_inc(&work->conn->stats.open_files_count); in ksmbd_open_fd() 659 atomic_sub(num, &work->conn->stats.open_files_count); in ksmbd_close_tree_conn_fds() 668 atomic_sub(num, &work->conn->stats.open_files_count); in ksmbd_close_session_fds()
|
/fs/nfsd/ |
D | export.c | 334 static int export_stats_init(struct export_stats *stats) in export_stats_init() argument 336 stats->start_time = ktime_get_seconds(); in export_stats_init() 337 return nfsd_percpu_counters_init(stats->counter, EXP_STATS_COUNTERS_NUM); in export_stats_init() 340 static void export_stats_reset(struct export_stats *stats) in export_stats_reset() argument 342 nfsd_percpu_counters_reset(stats->counter, EXP_STATS_COUNTERS_NUM); in export_stats_reset() 345 static void export_stats_destroy(struct export_stats *stats) in export_stats_destroy() argument 347 nfsd_percpu_counters_destroy(stats->counter, EXP_STATS_COUNTERS_NUM); in export_stats_destroy()
|