diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-10-06 16:49:28 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-10-14 14:16:56 -0700 |
commit | 294747f125edcf15d08dd70414f41cd86f85e690 (patch) | |
tree | 2bd571a9fc04ad9542cec9970871ae3b7335f1ad /fs/xfs/scrub/agheader_repair.c | |
parent | cdff922babd46994d6e70672c78a33e6c9e9be4b (diff) |
xfs: use i_prev_unlinked to distinguish inodes that are not on the unlinked list
Alter the definition of i_prev_unlinked slightly to make it more obvious
when an inode with 0 link count is not part of the iunlink bucket lists
rooted in the AGI. An upcoming enhancement to the online AGI fsck code
will need to make this distinction to check and rebuild the AGI unlinked
buckets.
This distinction is necessary because it is not sufficient to check
xfs_inode.i_nlink to decide if an inode is on the unlinked list.
Updates to i_nlink can happen while holding only ILOCK_EXCL, but updates
to an inode's position in the AGI unlinked list requires both ILOCK_EXCL
and the AGI buffer lock.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/scrub/agheader_repair.c')
0 files changed, 0 insertions, 0 deletions