summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/stats.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2024-02-22 23:30:54 +0300
committerDarrick J. Wong <djwong@kernel.org>2024-02-22 23:30:54 +0300
commit48dd9117a34fe9a34a6be0b1dba5694e0f19cbd4 (patch)
treea84231a6bdaffc0d9739e7d78ea06a989c1c69a1 /fs/xfs/scrub/stats.c
parent5a3ab5849583217090e29299c7bee88b827c12d8 (diff)
downloadlinux-48dd9117a34fe9a34a6be0b1dba5694e0f19cbd4.tar.xz
xfs: implement live quotacheck inode scan
Create a new trio of scrub functions to check quota counters. While the dquots themselves are filesystem metadata and should be checked early, the dquot counter values are computed from other metadata and are therefore summary counters. We don't plug these into the scrub dispatch just yet, because we still need to be able to watch quota updates while doing our scan. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/scrub/stats.c')
-rw-r--r--fs/xfs/scrub/stats.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/scrub/stats.c b/fs/xfs/scrub/stats.c
index cd91db4a5548..d716a432227b 100644
--- a/fs/xfs/scrub/stats.c
+++ b/fs/xfs/scrub/stats.c
@@ -77,6 +77,7 @@ static const char *name_map[XFS_SCRUB_TYPE_NR] = {
[XFS_SCRUB_TYPE_GQUOTA] = "grpquota",
[XFS_SCRUB_TYPE_PQUOTA] = "prjquota",
[XFS_SCRUB_TYPE_FSCOUNTERS] = "fscounters",
+ [XFS_SCRUB_TYPE_QUOTACHECK] = "quotacheck",
};
/* Format the scrub stats into a text buffer, similar to pcp style. */