]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: pass the defer ops directly to xfs_defer_add
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)
commite6f5dc8a90682e55daa0a63c737a57e9bf9eac3c
treea9fea91505a6e9da203a10a5c10d7c34189005fa
parenteffb6e31d2c0a147d4d7903d00cbbaf6a2df0e74
xfs: pass the defer ops directly to xfs_defer_add

Source kernel commit: 603ce8ab12094a2d9483c79a7541335e258a5328

Pass a pointer to the xfs_defer_op_type structure to xfs_defer_add and
remove the indirection through the xfs_defer_ops_type enum and a global
table of all possible operations.

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_alloc.c
libxfs/xfs_attr.c
libxfs/xfs_bmap.c
libxfs/xfs_defer.c
libxfs/xfs_defer.h
libxfs/xfs_refcount.c
libxfs/xfs_rmap.c