xfs: use xfs_defer_create_done for the relogging operation
authorDarrick J. Wong <djwong@kernel.org>
Thu, 30 Nov 2023 19:44:56 +0000 (11:44 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 7 Dec 2023 02:45:16 +0000 (18:45 -0800)
commitbd3a88f6b71c7509566b44b7021581191cc11ae3
tree8d70c82cf755c2129d5e916907bfa6eca98277f1
parentf3fd7f6fce1cc9b8eb59705b27f823330207b7c9
xfs: use xfs_defer_create_done for the relogging operation

Now that we have a helper to handle creating a log intent done item and
updating all the necessary state flags, use it to reduce boilerplate in
the ->iop_relog implementations.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_defer.c
fs/xfs/xfs_attr_item.c
fs/xfs/xfs_bmap_item.c
fs/xfs/xfs_extfree_item.c
fs/xfs/xfs_refcount_item.c
fs/xfs/xfs_rmap_item.c
fs/xfs/xfs_trans.h