Merge tag 'repair-quota-6.8_2023-12-15' of https://git.kernel.org/pub/scm/linux/kerne...
authorChandan Babu R <chandanbabu@kernel.org>
Sat, 16 Dec 2023 03:23:55 +0000 (08:53 +0530)
committerChandan Babu R <chandanbabu@kernel.org>
Sat, 16 Dec 2023 03:23:55 +0000 (08:53 +0530)
commit98bdbf60cca858f4bc993895b738c6ae1bef42b8
tree08ed2e43ab767980df2b76661efd856bd7a94532
parent5bb4ad95c1c619e78cdbe8b31a2946b9204090ba
parenta5b91555403e3a09ae00bed85fc78b60801dda24
Merge tag 'repair-quota-6.8_2023-12-15' of https://git./linux/kernel/git/djwong/xfs-linux into xfs-6.8-mergeB

xfs: online repair of quota and rt metadata files

XFS stores quota records and free space bitmap information in files.
Add the necessary infrastructure to enable repairing metadata inodes and
their forks, and then make it so that we can repair the file metadata
for the rtbitmap.  Repairing the bitmap contents (and the summary file)
is left for subsequent patchsets.

We also add the ability to repair file metadata the quota files.  As
part of these repairs, we also reinitialize the ondisk dquot records as
necessary to get the incore dquots working.  We can also correct
obviously bad dquot record attributes, but we leave checking the
resource usage counts for the next patchsets.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
* tag 'repair-quota-6.8_2023-12-15' of https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux:
  xfs: repair quotas
  xfs: improve dquot iteration for scrub
  xfs: check dquot resource timers
  xfs: check the ondisk space mapping behind a dquot