]> git.itanic.dy.fi Git - linux-stable/commit
xfs: pass the defer ops directly to xfs_defer_add
authorChristoph Hellwig <hch@lst.de>
Wed, 13 Dec 2023 09:06:33 +0000 (10:06 +0100)
committerChandan Babu R <chandanbabu@kernel.org>
Thu, 14 Dec 2023 05:43:52 +0000 (11:13 +0530)
commit603ce8ab12094a2d9483c79a7541335e258a5328
tree70458c6415e296b9e6f9a5a42012fd8374dd7d6c
parentdc22af64368291a86fb6b7eb2adab21c815836b7
xfs: pass the defer ops directly to xfs_defer_add

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