]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: set the prev pointer when reinserting an inode on the unlinked list
authorDarrick J. Wong <djwong@kernel.org>
Mon, 27 Jul 2026 05:26:37 +0000 (22:26 -0700)
committerCarlos Maiolino <cem@kernel.org>
Mon, 3 Aug 2026 08:20:43 +0000 (10:20 +0200)
commitaf146cb7ff8ff5c54162f35c238f3ff1d5ad110f
tree829f48c9ad0fbda8362b593e83ffbadc7cfbe2db
parent6d67c6b99f1fc07c64b97fcbc974c6f1ada7f622
xfs: set the prev pointer when reinserting an inode on the unlinked list

If we find a rogue free inode and decide to reinsert it into the
unlinked list, we need to set the prev pointer to NULLAGINO so that the
incore list gets updated.

Cc: stable@vger.kernel.org # v6.10
Fixes: ab97f4b1c03075 ("xfs: repair AGI unlinked inode bucket lists")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/scrub/agheader_repair.c