xfs: track quota updates during live quotacheck
authorDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:30:55 +0000 (12:30 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:30:55 +0000 (12:30 -0800)
commit200491875ce144fdc49827387fff2f604b73c0a9
tree75d9e27fab9c671be467aeedc7e0692a88dfb701
parent48dd9117a34fe9a34a6be0b1dba5694e0f19cbd4
xfs: track quota updates during live quotacheck

Create a shadow dqtrx system in the quotacheck code that hooks the
regular dquot counter update code.  This will be the means to keep our
copy of the dquot counters up to date while the scan runs in real time.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/scrub/common.c
fs/xfs/scrub/quotacheck.c
fs/xfs/scrub/quotacheck.h
fs/xfs/scrub/scrub.c
fs/xfs/scrub/scrub.h
fs/xfs/scrub/trace.h
fs/xfs/xfs_qm.c
fs/xfs/xfs_qm.h
fs/xfs/xfs_qm_bhv.c
fs/xfs/xfs_quota.h
fs/xfs/xfs_trans_dquot.c