xfs: don't pass the old lv to xfs_cil_prepare_item
authorChristoph Hellwig <hch@lst.de>
Tue, 15 Jul 2025 12:30:06 +0000 (14:30 +0200)
committerCarlos Maiolino <cem@kernel.org>
Thu, 24 Jul 2025 15:30:14 +0000 (17:30 +0200)
commit469342210afe516dcb79551a8ac43030efc0c3ac
tree1c9dfd4ccbb05f9b47530c48b40d6114fcd66950
parent75fe259ff7f67d5072f9b5b282be75e159e5e6c7
xfs: don't pass the old lv to xfs_cil_prepare_item

By the time xfs_cil_prepare_item is called, the old lv is still pointed
to by the log item.  Take it from there instead of spreading the old lv
logic over xlog_cil_insert_format_items and xfs_cil_prepare_item.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_log_cil.c