]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: store an ops pointer in struct xfs_defer_pending
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)
commit6b1f3546f5803ad57738ad4a95ded1b8dbba2d61
tree02b15f9ace7b19017b7cf8e7a7a081439d5e62e5
parentba5ed3487db0df2cdaa7ed4ad19c240aab53be11
xfs: store an ops pointer in struct xfs_defer_pending

Source kernel commit: 7f2f7531e0d455f1abb9f48fbbe17c37e8742590

The dfp_type field in struct xfs_defer_pending is only used to either
look up the operations associated with the pending word or in trace
points.  Replace it with a direct pointer to the operations vector,
and store a pretty name in the vector for tracing.

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/defer_item.c
libxfs/xfs_defer.c
libxfs/xfs_defer.h