]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: consolidate the xfs_attr_defer_* helpers
authorChristoph Hellwig <hch@lst.de>
Mon, 15 Apr 2024 23:07:36 +0000 (16:07 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 17 Apr 2024 21:06:24 +0000 (14:06 -0700)
commitba5ed3487db0df2cdaa7ed4ad19c240aab53be11
treed3dedcfdc00d43f9b1cfd0b025dbe5c41d75999b
parentd57269fad6859c88b4752ea191a0ccb3f4e68eaa
xfs: consolidate the xfs_attr_defer_* helpers

Source kernel commit: c00eebd09e95757c9c1d08f0a6bbc32c543daf90

Consolidate the xfs_attr_defer_* helpers into a single xfs_attr_defer_add
one that picks the right dela_state based on the passed in operation.
Also move to a single trace point as the actual operation is visible
through the flags in the delta_state passed to the trace point.

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