xfs: implement live quotacheck inode scan
authorDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:30:54 +0000 (12:30 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:30:54 +0000 (12:30 -0800)
commit48dd9117a34fe9a34a6be0b1dba5694e0f19cbd4
treea84231a6bdaffc0d9739e7d78ea06a989c1c69a1
parent5a3ab5849583217090e29299c7bee88b827c12d8
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>
fs/xfs/Makefile
fs/xfs/libxfs/xfs_fs.h
fs/xfs/scrub/common.c
fs/xfs/scrub/common.h
fs/xfs/scrub/health.c
fs/xfs/scrub/quotacheck.c [new file with mode: 0644]
fs/xfs/scrub/quotacheck.h [new file with mode: 0644]
fs/xfs/scrub/scrub.c
fs/xfs/scrub/scrub.h
fs/xfs/scrub/stats.c
fs/xfs/scrub/trace.h