Home
last modified time | relevance | path

Searched refs:stats (Results 1 – 25 of 50) sorted by relevance

12

/fs/ocfs2/
Dblockcheck.c250 static void ocfs2_blockcheck_debug_remove(struct ocfs2_blockcheck_stats *stats) in ocfs2_blockcheck_debug_remove() argument
252 if (stats) { in ocfs2_blockcheck_debug_remove()
253 debugfs_remove(stats->b_debug_check); in ocfs2_blockcheck_debug_remove()
254 stats->b_debug_check = NULL; in ocfs2_blockcheck_debug_remove()
255 debugfs_remove(stats->b_debug_failure); in ocfs2_blockcheck_debug_remove()
256 stats->b_debug_failure = NULL; in ocfs2_blockcheck_debug_remove()
257 debugfs_remove(stats->b_debug_recover); in ocfs2_blockcheck_debug_remove()
258 stats->b_debug_recover = NULL; in ocfs2_blockcheck_debug_remove()
259 debugfs_remove(stats->b_debug_dir); in ocfs2_blockcheck_debug_remove()
260 stats->b_debug_dir = NULL; in ocfs2_blockcheck_debug_remove()
[all …]
Dblockcheck.h59 struct ocfs2_blockcheck_stats *stats);
64 struct ocfs2_blockcheck_stats *stats);
67 int ocfs2_blockcheck_stats_debugfs_install(struct ocfs2_blockcheck_stats *stats,
69 void ocfs2_blockcheck_stats_debugfs_remove(struct ocfs2_blockcheck_stats *stats);
Dioctl.c414 static void o2ffg_update_stats(struct ocfs2_info_freefrag_stats *stats, in o2ffg_update_stats() argument
417 if (chunksize > stats->ffs_max) in o2ffg_update_stats()
418 stats->ffs_max = chunksize; in o2ffg_update_stats()
420 if (chunksize < stats->ffs_min) in o2ffg_update_stats()
421 stats->ffs_min = chunksize; in o2ffg_update_stats()
423 stats->ffs_avg += chunksize; in o2ffg_update_stats()
424 stats->ffs_free_chunks_real++; in o2ffg_update_stats()
Dsuper.c126 struct ocfs2_blockcheck_stats *stats);
130 struct ocfs2_blockcheck_stats *stats);
757 struct ocfs2_blockcheck_stats *stats) in ocfs2_sb_probe() argument
823 memset(stats, 0, sizeof(struct ocfs2_blockcheck_stats)); in ocfs2_sb_probe()
824 spin_lock_init(&stats->b_lock); in ocfs2_sb_probe()
825 tmpstat = ocfs2_verify_volume(di, *bh, blksize, stats); in ocfs2_sb_probe()
1012 struct ocfs2_blockcheck_stats stats; in ocfs2_fill_super() local
1022 status = ocfs2_sb_probe(sb, &bh, &sector_size, &stats); in ocfs2_fill_super()
1028 status = ocfs2_initialize_super(sb, bh, sector_size, &stats); in ocfs2_fill_super()
2034 struct ocfs2_blockcheck_stats *stats) in ocfs2_initialize_super() argument
[all …]
/fs/cachefiles/
Dbind.c89 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 …]
Ddaemon.c678 struct kstatfs stats; in cachefiles_has_space() local
695 memset(&stats, 0, sizeof(stats)); in cachefiles_has_space()
697 ret = vfs_statfs(&path, &stats); in cachefiles_has_space()
705 stats.f_bavail >>= cache->bshift; in cachefiles_has_space()
712 if (stats.f_ffree > fnr) in cachefiles_has_space()
713 stats.f_ffree -= fnr; in cachefiles_has_space()
715 stats.f_ffree = 0; in cachefiles_has_space()
717 if (stats.f_bavail > bnr) in cachefiles_has_space()
718 stats.f_bavail -= bnr; in cachefiles_has_space()
720 stats.f_bavail = 0; in cachefiles_has_space()
[all …]
/fs/xfs/
Dxfs_stats.c23 static int counter_val(struct xfsstats __percpu *stats, int idx) in counter_val() argument
28 val += *(((__u32 *)per_cpu_ptr(stats, cpu) + idx)); in counter_val()
32 int xfs_stats_format(struct xfsstats __percpu *stats, char *buf) in xfs_stats_format() argument
78 counter_val(stats, j)); in xfs_stats_format()
83 xs_xstrat_bytes += per_cpu_ptr(stats, i)->xs_xstrat_bytes; in xfs_stats_format()
84 xs_write_bytes += per_cpu_ptr(stats, i)->xs_write_bytes; in xfs_stats_format()
85 xs_read_bytes += per_cpu_ptr(stats, i)->xs_read_bytes; in xfs_stats_format()
100 void xfs_stats_clearall(struct xfsstats __percpu *stats) in xfs_stats_clearall() argument
109 vn_active = per_cpu_ptr(stats, c)->vn_active; in xfs_stats_clearall()
110 memset(per_cpu_ptr(stats, c), 0, sizeof(*stats)); in xfs_stats_clearall()
[all …]
Dxfs_sysfs.c206 struct xstats *stats = to_xstats(kobject); in stats_show() local
208 return xfs_stats_format(stats->xs_stats, buf); in stats_show()
210 XFS_SYSFS_ATTR_RO(stats);
220 struct xstats *stats = to_xstats(kobject); in stats_clear_store() local
229 xfs_stats_clearall(stats->xs_stats); in stats_clear_store()
235 ATTR_LIST(stats),
Dxfs_stats.h248 int xfs_stats_format(struct xfsstats __percpu *stats, char *buf);
249 void xfs_stats_clearall(struct xfsstats __percpu *stats);
/fs/cifs/
Dsmb1ops.c625 atomic_set(&tcon->stats.cifs_stats.num_writes, 0); in cifs_clear_stats()
626 atomic_set(&tcon->stats.cifs_stats.num_reads, 0); in cifs_clear_stats()
627 atomic_set(&tcon->stats.cifs_stats.num_flushes, 0); in cifs_clear_stats()
628 atomic_set(&tcon->stats.cifs_stats.num_oplock_brks, 0); in cifs_clear_stats()
629 atomic_set(&tcon->stats.cifs_stats.num_opens, 0); in cifs_clear_stats()
630 atomic_set(&tcon->stats.cifs_stats.num_posixopens, 0); in cifs_clear_stats()
631 atomic_set(&tcon->stats.cifs_stats.num_posixmkdirs, 0); in cifs_clear_stats()
632 atomic_set(&tcon->stats.cifs_stats.num_closes, 0); in cifs_clear_stats()
633 atomic_set(&tcon->stats.cifs_stats.num_deletes, 0); in cifs_clear_stats()
634 atomic_set(&tcon->stats.cifs_stats.num_mkdirs, 0); in cifs_clear_stats()
[all …]
Dcifssmb.c857 cifs_stats_inc(&tcon->stats.cifs_stats.num_deletes); in CIFSPOSIXDelFile()
900 cifs_stats_inc(&tcon->stats.cifs_stats.num_deletes); in CIFSSMBDelFile()
946 cifs_stats_inc(&tcon->stats.cifs_stats.num_rmdirs); in CIFSSMBRmDir()
991 cifs_stats_inc(&tcon->stats.cifs_stats.num_mkdirs); in CIFSSMBMkDir()
1114 cifs_stats_inc(&tcon->stats.cifs_stats.num_posixmkdirs); in CIFSPOSIXCreate()
1116 cifs_stats_inc(&tcon->stats.cifs_stats.num_posixopens); in CIFSPOSIXCreate()
1236 cifs_stats_inc(&tcon->stats.cifs_stats.num_opens); in SMBLegacyOpen()
1363 cifs_stats_inc(&tcon->stats.cifs_stats.num_opens); in CIFS_open()
1665 cifs_stats_inc(&tcon->stats.cifs_stats.num_reads); in cifs_async_readv()
1735 cifs_stats_inc(&tcon->stats.cifs_stats.num_reads); in CIFSSMBRead()
[all …]
/fs/jbd2/
Dcommit.c355 struct transaction_stats_s stats; in jbd2_journal_commit_transaction() local
425 stats.run.rs_wait = commit_transaction->t_max_wait; in jbd2_journal_commit_transaction()
426 stats.run.rs_request_delay = 0; in jbd2_journal_commit_transaction()
427 stats.run.rs_locked = jiffies; in jbd2_journal_commit_transaction()
429 stats.run.rs_request_delay = in jbd2_journal_commit_transaction()
431 stats.run.rs_locked); in jbd2_journal_commit_transaction()
432 stats.run.rs_running = jbd2_time_diff(commit_transaction->t_start, in jbd2_journal_commit_transaction()
433 stats.run.rs_locked); in jbd2_journal_commit_transaction()
518 stats.run.rs_flushing = jiffies; in jbd2_journal_commit_transaction()
519 stats.run.rs_locked = jbd2_time_diff(stats.run.rs_locked, in jbd2_journal_commit_transaction()
[all …]
Djournal.c968 struct transaction_stats_s *stats; member
991 s->stats->ts_tid, s->stats->ts_requested, in jbd2_seq_info_show()
993 if (s->stats->ts_tid == 0) in jbd2_seq_info_show()
996 jiffies_to_msecs(s->stats->run.rs_wait / s->stats->ts_tid)); in jbd2_seq_info_show()
998 (s->stats->ts_requested == 0) ? 0 : in jbd2_seq_info_show()
999 jiffies_to_msecs(s->stats->run.rs_request_delay / in jbd2_seq_info_show()
1000 s->stats->ts_requested)); in jbd2_seq_info_show()
1002 jiffies_to_msecs(s->stats->run.rs_running / s->stats->ts_tid)); in jbd2_seq_info_show()
1004 jiffies_to_msecs(s->stats->run.rs_locked / s->stats->ts_tid)); in jbd2_seq_info_show()
1006 jiffies_to_msecs(s->stats->run.rs_flushing / s->stats->ts_tid)); in jbd2_seq_info_show()
[all …]
Dcheckpoint.c553 struct transaction_chp_stats_s *stats; in __jbd2_journal_remove_checkpoint() local
589 stats = &transaction->t_chp_stats; in __jbd2_journal_remove_checkpoint()
590 if (stats->cs_chp_time) in __jbd2_journal_remove_checkpoint()
591 stats->cs_chp_time = jbd2_time_diff(stats->cs_chp_time, in __jbd2_journal_remove_checkpoint()
594 transaction->t_tid, stats); in __jbd2_journal_remove_checkpoint()
/fs/ext4/
Dialloc.c357 int flex_size, struct orlov_stats *stats) in get_orlov_stats() argument
363 stats->free_inodes = atomic_read(&flex_group[g].free_inodes); in get_orlov_stats()
364 stats->free_clusters = atomic64_read(&flex_group[g].free_clusters); in get_orlov_stats()
365 stats->used_dirs = atomic_read(&flex_group[g].used_dirs); in get_orlov_stats()
371 stats->free_inodes = ext4_free_inodes_count(sb, desc); in get_orlov_stats()
372 stats->free_clusters = ext4_free_group_clusters(sb, desc); in get_orlov_stats()
373 stats->used_dirs = ext4_used_dirs_count(sb, desc); in get_orlov_stats()
375 stats->free_inodes = 0; in get_orlov_stats()
376 stats->free_clusters = 0; in get_orlov_stats()
377 stats->used_dirs = 0; in get_orlov_stats()
[all …]
/fs/nfs/
Diostat.h70 static inline void nfs_free_iostats(struct nfs_iostats __percpu *stats) in nfs_free_iostats() argument
72 if (stats != NULL) in nfs_free_iostats()
73 free_percpu(stats); in nfs_free_iostats()
Dnfs3client.c18 .stats = &nfsacl_rpcstat,
/fs/nilfs2/
Dbtree.c1058 struct nilfs_bmap_stats *stats) in nilfs_btree_prepare_insert() argument
1066 stats->bs_nblocks = 0; in nilfs_btree_prepare_insert()
1088 stats->bs_nblocks++; in nilfs_btree_prepare_insert()
1106 stats->bs_nblocks++; in nilfs_btree_prepare_insert()
1124 stats->bs_nblocks++; in nilfs_btree_prepare_insert()
1144 stats->bs_nblocks++; in nilfs_btree_prepare_insert()
1157 stats->bs_nblocks++; in nilfs_btree_prepare_insert()
1180 stats->bs_nblocks += 2; in nilfs_btree_prepare_insert()
1200 stats->bs_nblocks = 0; in nilfs_btree_prepare_insert()
1231 struct nilfs_bmap_stats stats; in nilfs_btree_insert() local
[all …]
/fs/logfs/
Dsuper.c97 int logfs_statfs(struct dentry *dentry, struct kstatfs *stats) in logfs_statfs() argument
102 stats->f_type = LOGFS_MAGIC_U32; in logfs_statfs()
103 stats->f_bsize = sb->s_blocksize; in logfs_statfs()
104 stats->f_blocks = super->s_size >> LOGFS_BLOCK_BITS >> 3; in logfs_statfs()
105 stats->f_bfree = super->s_free_bytes >> sb->s_blocksize_bits; in logfs_statfs()
106 stats->f_bavail = super->s_free_bytes >> sb->s_blocksize_bits; in logfs_statfs()
107 stats->f_files = 0; in logfs_statfs()
108 stats->f_ffree = 0; in logfs_statfs()
109 stats->f_namelen = LOGFS_MAX_NAMELEN; in logfs_statfs()
/fs/gfs2/
Dtrace_gfs2.h287 __entry->srtt = gl->gl_stats.stats[GFS2_LKS_SRTT];
288 __entry->srttvar = gl->gl_stats.stats[GFS2_LKS_SRTTVAR];
289 __entry->srttb = gl->gl_stats.stats[GFS2_LKS_SRTTB];
290 __entry->srttvarb = gl->gl_stats.stats[GFS2_LKS_SRTTVARB];
291 __entry->sirt = gl->gl_stats.stats[GFS2_LKS_SIRT];
292 __entry->sirtvar = gl->gl_stats.stats[GFS2_LKS_SIRTVAR];
293 __entry->dcount = gl->gl_stats.stats[GFS2_LKS_DCOUNT];
294 __entry->qcount = gl->gl_stats.stats[GFS2_LKS_QCOUNT];
Dglock.c712 gl->gl_stats.stats[GFS2_LKS_DCOUNT] = 0; in gfs2_glock_get()
713 gl->gl_stats.stats[GFS2_LKS_QCOUNT] = 0; in gfs2_glock_get()
1714 (unsigned long long)gl->gl_stats.stats[GFS2_LKS_SRTT], in gfs2_glstats_seq_show()
1715 (unsigned long long)gl->gl_stats.stats[GFS2_LKS_SRTTVAR], in gfs2_glstats_seq_show()
1716 (unsigned long long)gl->gl_stats.stats[GFS2_LKS_SRTTB], in gfs2_glstats_seq_show()
1717 (unsigned long long)gl->gl_stats.stats[GFS2_LKS_SRTTVARB], in gfs2_glstats_seq_show()
1718 (unsigned long long)gl->gl_stats.stats[GFS2_LKS_SIRT], in gfs2_glstats_seq_show()
1719 (unsigned long long)gl->gl_stats.stats[GFS2_LKS_SIRTVAR], in gfs2_glstats_seq_show()
1720 (unsigned long long)gl->gl_stats.stats[GFS2_LKS_DCOUNT], in gfs2_glstats_seq_show()
1721 (unsigned long long)gl->gl_stats.stats[GFS2_LKS_QCOUNT]); in gfs2_glstats_seq_show()
[all …]
Dincore.h247 u64 stats[GFS2_NR_LKSTATS]; member
842 gl->gl_stats.stats[which]++; in gfs2_glstats_inc()
849 this_cpu_ptr(sdp->sd_lkstats)->lkstats[gl->gl_name.ln_type].stats[which]++; in gfs2_sbstats_inc()
/fs/fscache/
DKconfig19 /proc/fs/fscache/stats
22 execution as there are a quite a few stats gathered, and on a
24 between CPUs. On the other hand, the stats are very useful for
DMakefile16 fscache-$(CONFIG_FSCACHE_STATS) += stats.o
/fs/nfsd/
DMakefile13 export.o auth.o lockd.o nfscache.o nfsxdr.o stats.o

12