Skip to content

Commit edf6078

Browse files
Christoph Hellwigcmaiolino
authored andcommitted
xfs: give the defer_relog stat a xs_ prefix
Make this counter naming consistent with all the others. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Signed-off-by: Carlos Maiolino <cem@kernel.org>
1 parent 41374ae commit edf6078

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

fs/xfs/libxfs/xfs_defer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ xfs_defer_relog(
565565
continue;
566566

567567
trace_xfs_defer_relog_intent((*tpp)->t_mountp, dfp);
568-
XFS_STATS_INC((*tpp)->t_mountp, defer_relog);
568+
XFS_STATS_INC((*tpp)->t_mountp, xs_defer_relog);
569569

570570
xfs_defer_relog_intent(*tpp, dfp);
571571
}

fs/xfs/xfs_stats.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ int xfs_stats_format(struct xfsstats __percpu *stats, char *buf)
2323
uint64_t xs_xstrat_bytes = 0;
2424
uint64_t xs_write_bytes = 0;
2525
uint64_t xs_read_bytes = 0;
26-
uint64_t defer_relog = 0;
26+
uint64_t xs_defer_relog = 0;
2727

2828
static const struct xstats_entry {
2929
char *desc;
@@ -76,13 +76,13 @@ int xfs_stats_format(struct xfsstats __percpu *stats, char *buf)
7676
xs_xstrat_bytes += per_cpu_ptr(stats, i)->s.xs_xstrat_bytes;
7777
xs_write_bytes += per_cpu_ptr(stats, i)->s.xs_write_bytes;
7878
xs_read_bytes += per_cpu_ptr(stats, i)->s.xs_read_bytes;
79-
defer_relog += per_cpu_ptr(stats, i)->s.defer_relog;
79+
xs_defer_relog += per_cpu_ptr(stats, i)->s.xs_defer_relog;
8080
}
8181

8282
len += scnprintf(buf + len, PATH_MAX-len, "xpc %llu %llu %llu\n",
8383
xs_xstrat_bytes, xs_write_bytes, xs_read_bytes);
8484
len += scnprintf(buf + len, PATH_MAX-len, "defer_relog %llu\n",
85-
defer_relog);
85+
xs_defer_relog);
8686
len += scnprintf(buf + len, PATH_MAX-len, "debug %u\n",
8787
#if defined(DEBUG)
8888
1);

fs/xfs/xfs_stats.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ struct __xfsstats {
142142
uint64_t xs_xstrat_bytes;
143143
uint64_t xs_write_bytes;
144144
uint64_t xs_read_bytes;
145-
uint64_t defer_relog;
145+
uint64_t xs_defer_relog;
146146
};
147147

148148
#define xfsstats_offset(f) (offsetof(struct __xfsstats, f)/sizeof(uint32_t))

0 commit comments

Comments
 (0)