]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: pass the defer ops instead of type to xfs_defer_start_recovery
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)
commiteffb6e31d2c0a147d4d7903d00cbbaf6a2df0e74
tree5b28c7263f70ac84662d4aa8dbbb8a3c37d194db
parent6b1f3546f5803ad57738ad4a95ded1b8dbba2d61
xfs: pass the defer ops instead of type to xfs_defer_start_recovery

Source kernel commit: dc22af64368291a86fb6b7eb2adab21c815836b7

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>
Reviewed-by: Bill O'Donnell <bodonnel@redhat.com>
libxfs/xfs_defer.c
libxfs/xfs_defer.h