Home
last modified time | relevance | path

Searched refs:xfsstats (Results 1 – 5 of 5) sorted by relevance

/linux-4.19.296/fs/xfs/
Dxfs_stats.h166 struct xfsstats { struct
180 int xfs_stats_format(struct xfsstats __percpu *stats, char *buf); argument
181 void xfs_stats_clearall(struct xfsstats __percpu *stats);
182 extern struct xstats xfsstats;
186 per_cpu_ptr(xfsstats.xs_stats, current_cpu())->s.v++; \
192 per_cpu_ptr(xfsstats.xs_stats, current_cpu())->s.v--; \
198 per_cpu_ptr(xfsstats.xs_stats, current_cpu())->s.v += (inc); \
204 per_cpu_ptr(xfsstats.xs_stats, current_cpu())->a[off]++; \
210 per_cpu_ptr(xfsstats.xs_stats, current_cpu())->a[off]; \
216 per_cpu_ptr(xfsstats.xs_stats, current_cpu())->a[off] += (inc); \
Dxfs_stats.c9 struct xstats xfsstats; variable
11 static int counter_val(struct xfsstats __percpu *stats, int idx) in counter_val()
20 int xfs_stats_format(struct xfsstats __percpu *stats, char *buf) in xfs_stats_format()
88 void xfs_stats_clearall(struct xfsstats __percpu *stats) in xfs_stats_clearall()
111 0, counter_val(xfsstats.xs_stats, XFSSTAT_END_XQMSTAT), in xqm_proc_show()
112 0, counter_val(xfsstats.xs_stats, XFSSTAT_END_XQMSTAT + 1)); in xqm_proc_show()
123 seq_printf(m, " %u", counter_val(xfsstats.xs_stats, j)); in xqmstat_proc_show()
Dxfs_linux.h162 struct xfsstats __percpu *xs_stats;
166 extern struct xstats xfsstats;
Dxfs_super.c1634 mp->m_stats.xs_stats = alloc_percpu(struct xfsstats); in xfs_fs_fill_super()
2100 xfsstats.xs_kobj.kobject.kset = xfs_kset; in init_xfs_fs()
2102 xfsstats.xs_stats = alloc_percpu(struct xfsstats); in init_xfs_fs()
2103 if (!xfsstats.xs_stats) { in init_xfs_fs()
2108 error = xfs_sysfs_init(&xfsstats.xs_kobj, &xfs_stats_ktype, NULL, in init_xfs_fs()
2136 xfs_sysfs_del(&xfsstats.xs_kobj); in init_xfs_fs()
2138 free_percpu(xfsstats.xs_stats); in init_xfs_fs()
2165 xfs_sysfs_del(&xfsstats.xs_kobj); in exit_xfs_fs()
2166 free_percpu(xfsstats.xs_stats); in exit_xfs_fs()
Dxfs_sysctl.c28 xfs_stats_clearall(xfsstats.xs_stats); in xfs_stats_clear_proc_handler()