]> git.itanic.dy.fi Git - linux-stable/commit
xfs: store an ops pointer in struct xfs_defer_pending
authorChristoph Hellwig <hch@lst.de>
Wed, 13 Dec 2023 09:06:31 +0000 (10:06 +0100)
committerChandan Babu R <chandanbabu@kernel.org>
Thu, 14 Dec 2023 05:40:34 +0000 (11:10 +0530)
commit7f2f7531e0d455f1abb9f48fbbe17c37e8742590
treec76c3ed3e6d50197c05b90d79071e2165ef7f628
parent2e8f7b6f4a15ea92cb2186ad300ae4191d0edcef
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>
fs/xfs/libxfs/xfs_defer.c
fs/xfs/libxfs/xfs_defer.h
fs/xfs/xfs_attr_item.c
fs/xfs/xfs_bmap_item.c
fs/xfs/xfs_extfree_item.c
fs/xfs/xfs_refcount_item.c
fs/xfs/xfs_rmap_item.c
fs/xfs/xfs_trace.h