xfs: hoist ->create_intent boilerplate to its callsite
authorDarrick J. Wong <djwong@kernel.org>
Thu, 30 Nov 2023 18:58:37 +0000 (10:58 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 7 Dec 2023 02:45:16 +0000 (18:45 -0800)
commitf3fd7f6fce1cc9b8eb59705b27f823330207b7c9
treedc60472d1f19e200c67b5e562952fec72008bfd6
parente6e5299fcbf0b18cad45cd58f99787549c790857
xfs: hoist ->create_intent boilerplate to its callsite

Hoist the dirty flag setting code out of each ->create_intent
implementation up to the callsite to reduce boilerplate further.

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