]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: hoist ->create_intent boilerplate to its 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)
commit63a3ea39f6a0b212ef59e27356a39bfbac294a4d
tree0b26bd5c1fb026a58d676f95e62c1a67ac908e9a
parent3810e2215d3dbb34ea210f5f31c92d1a000540b6
xfs: hoist ->create_intent boilerplate to its callsite

Source kernel commit: f3fd7f6fce1cc9b8eb59705b27f823330207b7c9

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>
Reviewed-by: Bill O'Donnell <bodonnel@redhat.com>
libxfs/xfs_defer.c