]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: hoist intent done flag setting to ->finish_item callsite
authorDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 23:07:31 +0000 (16:07 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 17 Apr 2024 21:06:23 +0000 (14:06 -0700)
commit3810e2215d3dbb34ea210f5f31c92d1a000540b6
tree98d480461f3b4848f0a1c6b0c85af9ef48aedfae
parent0c9b2da91e94c39c4f6e1cc205754e200ab32ca0
xfs: hoist intent done flag setting to ->finish_item callsite

Source kernel commit: 3dd75c8db1c1675a26d3e228bab349c1fc065867

Each log intent item's ->finish_item call chain inevitably includes some
code to set the dirty flag of the transaction.  If there's an associated
log intent done item, it also sets the item's dirty flag and the
transaction's INTENT_DONE flag.  This is repeated throughout the
codebase.

Reduce the LOC by moving all that to xfs_defer_finish_one.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bill O'Donnell <bodonnel@redhat.com>
libxfs/xfs_defer.c