summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_refcount_item.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-12-13 10:06:31 +0100
committerChandan Babu R <chandanbabu@kernel.org>2023-12-14 11:10:34 +0530
commit7f2f7531e0d455f1abb9f48fbbe17c37e8742590 (patch)
treec76c3ed3e6d50197c05b90d79071e2165ef7f628 /fs/xfs/xfs_refcount_item.c
parent2e8f7b6f4a15ea92cb2186ad300ae4191d0edcef (diff)
downloadlinux-7f2f7531e0d455f1abb9f48fbbe17c37e8742590.tar.gz
linux-7f2f7531e0d455f1abb9f48fbbe17c37e8742590.tar.bz2
linux-7f2f7531e0d455f1abb9f48fbbe17c37e8742590.zip
xfs: store an ops pointer in struct xfs_defer_pending
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>
Diffstat (limited to 'fs/xfs/xfs_refcount_item.c')
-rw-r--r--fs/xfs/xfs_refcount_item.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_refcount_item.c b/fs/xfs/xfs_refcount_item.c
index 9974be81cb2b..b08839550f34 100644
--- a/fs/xfs/xfs_refcount_item.c
+++ b/fs/xfs/xfs_refcount_item.c
@@ -523,6 +523,7 @@ xfs_refcount_relog_intent(
}
const struct xfs_defer_op_type xfs_refcount_update_defer_type = {
+ .name = "refcount",
.max_items = XFS_CUI_MAX_FAST_EXTENTS,
.create_intent = xfs_refcount_update_create_intent,
.abort_intent = xfs_refcount_update_abort_intent,