]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - libxfs/xfs_defer.h
xfs: turn dfp_done into a xfs_log_item
authorChristoph Hellwig <hch@lst.de>
Mon, 10 Aug 2020 20:32:04 +0000 (16:32 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Mon, 10 Aug 2020 20:32:04 +0000 (16:32 -0400)
commit95e0127470cbc81909feaec9695201463c4eb2ab
treed5129cb42b4193e911635e84f50bee04f8f18c2f
parented0873e63c9be6f7eed35173e306dce016ac0ec6
xfs: turn dfp_done into a xfs_log_item

Source kernel commit: f09d167c20332ad1298ff82a6f538b4c7ea3fe1b

All defer op instance place their own extension of the log item into
the dfp_done field.  Replace that with a xfs_log_item to improve type
safety and make the code easier to follow.

Also use the opportunity to improve the ->finish_item calling conventions
to place the done log item as the higher level structure before the
list_entry used for the individual items.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/defer_item.c
libxfs/xfs_defer.c
libxfs/xfs_defer.h