Merge tag 'repair-unlinked-inode-state-6.10_2024-04-15' of https://git.kernel.org...
authorChandan Babu R <chandanbabu@kernel.org>
Tue, 16 Apr 2024 06:27:10 +0000 (11:57 +0530)
committerChandan Babu R <chandanbabu@kernel.org>
Tue, 16 Apr 2024 06:27:10 +0000 (11:57 +0530)
commit902603bfa12a541daacf2be8433e9f4bf3837de0
tree7d020f35c8b000987052d0dfd4f8d6e7d8086bb7
parent5f3e9511862cff676199060431bdadb89b411fd4
parent669dfe883c8e20231495f80a28ec7cc0b8fdddc4
Merge tag 'repair-unlinked-inode-state-6.10_2024-04-15' of https://git./linux/kernel/git/djwong/xfs-linux into xfs-6.10-mergeA

xfs: online repair of inode unlinked state

This series adds some logic to the inode scrubbers so that they can
detect and deal with consistency errors between the link count and the
per-inode unlinked list state.  The helpers needed to do this are
presented here because they are a prequisite for rebuildng directories,
since we need to get a rebuilt non-empty directory off the unlinked
list.

Note that this patchset does not provide comprehensive reconstruction of
the AGI unlinked list; that is coming in a subsequent patchset.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
* tag 'repair-unlinked-inode-state-6.10_2024-04-15' of https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux:
  xfs: update the unlinked list when repairing link counts
  xfs: ensure unlinked list state is consistent with nlink during scrub