]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: splice unsorted log items back to the transaction after the loop
authorWeiming Shi <bestswngs@gmail.com>
Thu, 2 Jul 2026 16:19:59 +0000 (09:19 -0700)
committerCarlos Maiolino <cem@kernel.org>
Tue, 7 Jul 2026 07:57:19 +0000 (09:57 +0200)
commit34dd2253414d228fc9bf8a70b5f9f83107eda3e1
tree3990e7daf3c44525a814b84825964c57280ad434
parent5b4396e12cb10fa89ca0a272fae2b5408cfeaa91
xfs: splice unsorted log items back to the transaction after the loop

On error, xlog_recover_reorder_trans() splices the leftover sort_list
items back to trans->r_itemq inside the loop before breaking out.  The
loop tail already splices the per-fate lists back, so do sort_list there
too, guarded by the assert that used to sit after the loop.

No functional change.  It drops the duplicated splice so the next patch
can add another error case without repeating it.

Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Weiming Shi <bestswngs@gmail.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_log_recover.c