Skip to content

Commit 184c619

Browse files
author
Darrick J. Wong
committed
xfs: advertise realtime quota support in the xqm stat files
Add a fifth column to this (really old) stat file to advertise that the kernel supports quota for realtime volumes. This will be used by fstests to detect kernel support. Signed-off-by: Darrick J. Wong <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]>
1 parent b28564c commit 184c619

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

fs/xfs/xfs_stats.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,11 @@ void xfs_stats_clearall(struct xfsstats __percpu *stats)
115115

116116
static int xqm_proc_show(struct seq_file *m, void *v)
117117
{
118-
/* maximum; incore; ratio free to inuse; freelist */
119-
seq_printf(m, "%d\t%d\t%d\t%u\n",
118+
/* maximum; incore; ratio free to inuse; freelist; rtquota */
119+
seq_printf(m, "%d\t%d\t%d\t%u\t%s\n",
120120
0, counter_val(xfsstats.xs_stats, XFSSTAT_END_XQMSTAT),
121-
0, counter_val(xfsstats.xs_stats, XFSSTAT_END_XQMSTAT + 1));
121+
0, counter_val(xfsstats.xs_stats, XFSSTAT_END_XQMSTAT + 1),
122+
IS_ENABLED(CONFIG_XFS_RT) ? "rtquota" : "quota");
122123
return 0;
123124
}
124125

0 commit comments

Comments
 (0)