]> git.itanic.dy.fi Git - linux-stable/commit
xfs: consolidate the xfs_attr_defer_* helpers
authorChristoph Hellwig <hch@lst.de>
Wed, 13 Dec 2023 09:06:29 +0000 (10:06 +0100)
committerChandan Babu R <chandanbabu@kernel.org>
Thu, 14 Dec 2023 05:40:33 +0000 (11:10 +0530)
commitc00eebd09e95757c9c1d08f0a6bbc32c543daf90
tree94e5ffd8ab2b30edea85c8f132dcbb3a169b59a5
parent19b366dae1c17cdc580f564ecc4b7f8ca52543b4
xfs: consolidate the xfs_attr_defer_* helpers

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>
fs/xfs/libxfs/xfs_attr.c
fs/xfs/xfs_trace.h