xfs: make inode unlinked bucket recovery work with quotacheck
authorDarrick J. Wong <djwong@kernel.org>
Mon, 11 Sep 2023 15:39:08 +0000 (08:39 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 12 Sep 2023 17:31:07 +0000 (10:31 -0700)
commit49813a21ed57895b73ec4ed3b99d4beec931496f
tree7a4af498dc4a10ce1245d6e8937be75fe6c9fd31
parent83771c50e42b92de6740a63e152c96c052d37736
xfs: make inode unlinked bucket recovery work with quotacheck

Teach quotacheck to reload the unlinked inode lists when walking the
inode table.  This requires extra state handling, since it's possible
that a reloaded inode will get inactivated before quotacheck tries to
scan it; in this case, we need to ensure that the reloaded inode does
not have dquots attached when it is freed.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/xfs_attr_inactive.c
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode.h
fs/xfs/xfs_mount.h
fs/xfs/xfs_qm.c