mirror of
https://github.com/torvalds/linux.git
synced 2026-09-13 15:40:03 +02:00
xfs: log the tempip after we convert it to extents format
LOLLM points out that xrep_symlink_swap_prep converts sc->tempip to an
extents format file prior to the atomic swap, but incorrectly logs
sc->ip immediately afterwards. Fix that, and the other problem that
we're supposed to tell xfs_trans_log_inode what to log and don't.
Cc: stable@vger.kernel.org # v6.10
Fixes: 2651923d8d ("xfs: online repair of symbolic links")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Assisted-by: LOLLM # finding obvious bugs
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
This commit is contained in:
parent
865b751e75
commit
ed799148e0
|
|
@ -291,7 +291,7 @@ xrep_symlink_swap_prep(
|
|||
if (error)
|
||||
return error;
|
||||
|
||||
xfs_trans_log_inode(sc->tp, sc->ip, 0);
|
||||
xfs_trans_log_inode(sc->tp, sc->tempip, logflags);
|
||||
|
||||
error = xfs_defer_finish(&sc->tp);
|
||||
if (error)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user