xfs: repair dquots based on live quotacheck results
authorDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:30:57 +0000 (12:30 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:30:57 +0000 (12:30 -0800)
commit96ed2ae4a9b06b417e1c20c086c77755a43284bf
treec61a2f29ef98053819ac53cff972695622f4b4a0
parent7038c6e5261eef2442bff086f80a493dbd8bfdc9
xfs: repair dquots based on live quotacheck results

Use the shadow quota counters that live quotacheck creates to reset the
incore dquot counters.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/Makefile
fs/xfs/scrub/quotacheck.c
fs/xfs/scrub/quotacheck.h
fs/xfs/scrub/quotacheck_repair.c [new file with mode: 0644]
fs/xfs/scrub/repair.c
fs/xfs/scrub/repair.h
fs/xfs/scrub/scrub.c
fs/xfs/scrub/trace.h