summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_log_recover.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-12-14 08:16:32 +0300
committerChandan Babu R <chandanbabu@kernel.org>2023-12-14 08:43:38 +0300
commitdc22af64368291a86fb6b7eb2adab21c815836b7 (patch)
treec908d2c6bdd56ef7e2be03c6c817580469e8232d /fs/xfs/xfs_log_recover.c
parent7f2f7531e0d455f1abb9f48fbbe17c37e8742590 (diff)
downloadlinux-dc22af64368291a86fb6b7eb2adab21c815836b7.tar.xz
xfs: pass the defer ops instead of type to xfs_defer_start_recovery
xfs_defer_start_recovery is only called from xlog_recover_intent_item, and the callers of that all have the actual xfs_defer_ops_type operation vector at hand. Pass that directly instead of looking it up from the defer_op_types table. 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_log_recover.c')
-rw-r--r--fs/xfs/xfs_log_recover.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c
index c18692af2c65..1251c81e55f9 100644
--- a/fs/xfs/xfs_log_recover.c
+++ b/fs/xfs/xfs_log_recover.c
@@ -1942,11 +1942,11 @@ xlog_recover_intent_item(
struct xlog *log,
struct xfs_log_item *lip,
xfs_lsn_t lsn,
- unsigned int dfp_type)
+ const struct xfs_defer_op_type *ops)
{
ASSERT(xlog_item_is_intent(lip));
- xfs_defer_start_recovery(lip, dfp_type, &log->r_dfops);
+ xfs_defer_start_recovery(lip, &log->r_dfops, ops);
/*
* Insert the intent into the AIL directly and drop one reference so